yadakhov / sportsodd
A class to work with sports odds. Convert between american and decimal odds.
v1.0.0
2017-01-13 04:28 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-11-21 21:04:17 UTC
README
class to work with sports odds. Convert between american and decimal odds.
Packagist
composer require yadakhov/sportsodd
Example
php example.php
use YadaKhov\SportsOdd; foreach (range(-4000, -101) as $american) { echo "$american | " . SportsOdd::americanToDecimal($american) . PHP_EOL; } foreach (range(100, 4000) as $american) { echo "$american | " . SportsOdd::americanToDecimal($american) . PHP_EOL; }