Download the PHP package ferranfg/elo-rating without Composer
On this page you can find all versions of the php package ferranfg/elo-rating. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ferranfg/elo-rating
More information about ferranfg/elo-rating
Files in ferranfg/elo-rating
Download ferranfg/elo-rating
More information about ferranfg/elo-rating
Files in ferranfg/elo-rating
Vendor ferranfg
Package elo-rating
Short Description A PHP implementation of Elo rating system
License
Homepage https://github.com/ferranfg/elo-rating
Package elo-rating
Short Description A PHP implementation of Elo rating system
License
Homepage https://github.com/ferranfg/elo-rating
Please rate this library. Is it a good library?
Informations about the package elo-rating
Elo Rating PHP
A PHP class which implements the Elo rating system for Fantasy Padel Tour.
Install with composer
composer require ferranfg/elo-rating
Link to Packagist.org: https://packagist.org/packages/ferranfg/elo-rating
Usage
require 'src/Rating/Rating.php';
// player A elo = 1000
// player B elo = 2000
// player A lost
// player B win
$rating = new Rating(1000, 2000, Rating::LOST, Rating::WIN);
// player A elo = 1000
// player B elo = 2000
// player A draw
// player B draw
$rating = new Rating(1000, 2000, Rating::DRAW, Rating::DRAW);
$results = $rating->getNewRatings();
echo "New rating for player A: " . $results['a'];
echo "New rating for player B: " . $results['b'];
Credits
Elo Rating PHP by Michal Chovanec is licensed under a Creative Commons Attribution 4.0 International License.
All versions of elo-rating with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package ferranfg/elo-rating contains the following files
Loading the files please wait ....