1. Go to this page and download the library: Download jsgm/odds-php 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/ */
jsgm / odds-php example snippets
// Converting decimal to fractional.
$odd = new Odds();
echo $odd->set('decimal', 5.50)->get('fractional'); // "string" 9/2
// Converting fractionalto moneyline.
$odd = new Odds();
echo $odd->set('fractional', '11/25')->get('moneyline'); // "float" -227
// Converting fractional to implied probability.
$odd = new Odds();
echo $odd->set('fractional', '44/100')->get('implied'); // "string" 69.44
// Formula: 100 / [Odd * (Payout / 100)] = real probability
$payout->get_real_probabilities(); // [23.53, 30.8, 55.12]
// The 'Payouts' class has to be al', 2.3], ['decimal', 3.3], ['decimal', 3.97]]);
if($surebet->is_surebet()){
print 'Surebet found! :)';
// '.($surebet->profit()).'% profit!';
}else{
print 'Sorry! :( No surebet found!';
}