robopuff / rating
An implementation of different rating systems
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/robopuff/rating
Requires
- php: ^7.0
Requires (Dev)
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2025-09-29 02:14:57 UTC
README
Elo
Based on Elo rating system, adapted to use over arrays
$elo = new Elo(); $results = $elo->ratePair(1500, 1500, Elo::RESULT_WON_A); // $results = [1508, 1492];
$elo = new Elo(); $results = $elo->rateArray([ // Place on the grid => Current rating 0 => 1500, //1st place 1 => 1500, //2nd place 2 => 1500 //3rd place // ... Nth place ]); // $results = [ // 0 => 1510, // 1 => 1502, // 2 => 1494, // n => ... // ];