2017 © Pedro Peláez
 

library rating

An implementation of different rating systems

image

robopuff/rating

An implementation of different rating systems

  • Tuesday, January 30, 2018
  • by robopuff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Rating

Elo

Build Status Coverage Status, (*1)

Based on Elo rating system, adapted to use over arrays, (*2)

$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 => ...
// ];

The Versions

30/01 2018

dev-master

9999999-dev

An implementation of different rating systems

  Sources   Download

GPL-2.0 GPL-2.0-or-later

The Requires

  • php ^7.0

 

The Development Requires