PHPackages                             diegobanos/php-glicko2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. diegobanos/php-glicko2

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

diegobanos/php-glicko2
======================

A PHP glicko2 implementation with an easy to use interface

1.4.2(6y ago)7132.9k↓23.4%1MITPHPCI failing

Since Jan 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/diegobanos/php-glicko2)[ Packagist](https://packagist.org/packages/diegobanos/php-glicko2)[ RSS](/packages/diegobanos-php-glicko2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

php-glicko2
===========

[](#php-glicko2)

[![Build Status](https://camo.githubusercontent.com/8cf8cee9d9d45a07ea476f14995993ecd7aaecb576d03bc40fe3019b9deb37ee/68747470733a2f2f7472617669732d63692e6f72672f646965676f62616e6f732f7068702d676c69636b6f322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/diegobanos/php-glicko2)

A PHP glicko2 implementation with an easy to use interface.

How to use
----------

[](#how-to-use)

```
use Diegobanos\Glicko2\Rating\Rating;
use Diegobanos\Glicko2\Result\Result;
use Diegobanos\Glicko2\Glicko2;

$glicko2 = new Glicko2;

$rating = new Rating(1500, 200);

$results = [
    new Result(new Rating(1400, 30), 1), //victory
    new Result(new Rating(1550, 100), 0), //defeat
    new Result(new Rating(1700, 300), 0) //defeat
];

$updatedRating = $glicko2->calculateRating($rating, $results);

//The updated rating will be (1464.06, 151.52, 0.05999)
```

You can also create your own `Rating` class that implements `Diegobanos\Glicko2\Rating\Rating\RatingInterface`.

Install
-------

[](#install)

composer require diegobanos/php-glicko2

License
-------

[](#license)

MIT License

Further reading
---------------

[](#further-reading)

The algorithm implemented on this project is described in the following [PDF](http://www.glicko.net/glicko/glicko2.pdf).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~50 days

Total

7

Last Release

2485d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3430fe6a129b3e6093e6b3814e8b7fd030418cf7f2df49a840ec48d9f7070a7a?d=identicon)[diegobanos](/maintainers/diegobanos)

---

Top Contributors

[![diegobanos](https://avatars.githubusercontent.com/u/10712173?v=4)](https://github.com/diegobanos "diegobanos (24 commits)")

---

Tags

glicko2libraryphpratingRatingrankingglickoglicko2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/diegobanos-php-glicko2/health.svg)

```
[![Health](https://phpackages.com/badges/diegobanos-php-glicko2/health.svg)](https://phpackages.com/packages/diegobanos-php-glicko2)
```

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[kartik-v/bootstrap-star-rating

A simple yet powerful JQuery star rating plugin for Bootstrap.

1.1k4.5M5](/packages/kartik-v-bootstrap-star-rating)[willvincent/laravel-rateable

Allows multiple models to be rated with a fivestar like system.

416452.0k3](/packages/willvincent-laravel-rateable)[codebyray/laravel-review-rateable

Review &amp; Rating system for Laravel 10, 11 &amp; 12

310351.9k](/packages/codebyray-laravel-review-rateable)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[nikaia/nova-rating-field

Add start rating field to Laravel Nova

42258.6k](/packages/nikaia-nova-rating-field)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
