1. Go to this page and download the library: Download sharapov/odds-converter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sharapov / odds-converter example snippets
$converter = new \Sharapov\OddsConverter\OddsConverter($odd);
$converter->setOdd('275');
print $converter->getFractional(); // 11/4
print $converter->getDecimal(); // 3.75
$converter->setOdd('11/4');
print $converter->getMoneyline(); // 275
print $converter->getDecimal(); // 3.75
$converter->setOdd('3.75');
print $converter->getMoneyline(); // 275
print $converter->getFractional(); // 11/4
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.