PHP code example of jleagle / elo-score-calculator

1. Go to this page and download the library: Download jleagle/elo-score-calculator 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/ */

    

jleagle / elo-score-calculator example snippets


$elo = new Elo(
  90, 60, Elo::WIN, Elo::LOST
);

$elo = new Elo(
  90, 90, Elo::DRAW, Elo::DRAW
);

$expectedScore = $elo->getExpected();

$newRatings = $elo->getRatings();