PHP code example of horaceho / ers

1. Go to this page and download the library: Download horaceho/ers 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/ */

    

horaceho / ers example snippets

 php


eho\Ers;

$ers = new Ers\Ers();

$player = 2100.0;
$opponent = 2100.0;
$win = 1.0;
$loss = 0.0;

$win_update = $ers->update($player, $opponent, $win);
assert ($win_update == 2109.306);
echo $win_update . PHP_EOL;
 bash
git clone [email protected]:horaceho/ers.git
cd ers
php test/ers.php
php test/about.php