PHPackages                             keypax/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. keypax/glicko2

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

keypax/glicko2
==============

A PHP implementation of the Glicko2 rating system. Fork of zelenin/glicko2, updated and compatible with PHP 8.1+

1.1.1(11mo ago)03.2k↓35%MITPHPPHP ^8.1

Since Jun 5Pushed 11mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Glicko2
=======

[](#glicko2)

A PHP implementation of [Glicko2 rating system](http://www.glicko.net/glicko.html)Fork of [zelenin/glicko2](https://github.com/zelenin/glicko2) with PHP 8.1 support

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require keypax/glicko2:"^1.0.0"

```

Usage
-----

[](#usage)

Create two players with current ratings:

```
use Zelenin\Glicko2\Glicko2;
use Zelenin\Glicko2\RatingMatch;
use Zelenin\Glicko2\RatingMatchCollection;
use Zelenin\Glicko2\Player;

$glicko = new Glicko2();

$player1 = new Player(1700, 250, 0.05);
$player2 = new Player();

$ratingMatch = new RatingMatch($player1, $player2, 1, 0);
$glicko->calculateRatingMatch($ratingMatch);

$ratingMatch = new RatingMatch($player1, $player2, 3, 2);
$glicko->calculateRatingMatch($ratingMatch);

// or

$ratingMatchCollection = new RatingMatchCollection();
$ratingMatchCollection->addRatingMatch(new RatingMatch($player1, $player2, 1, 0));
$ratingMatchCollection->addRatingMatch(new RatingMatch($player1, $player2, 3, 2));
$glicko->calculateRatingMatches($ratingMatchCollection);

$newPlayer1R = $player1->getR();
$newPlayer2R = $player2->getR();
```

Author
------

[](#author)

[Aleksandr Zelenin](https://github.com/zelenin/), e-mail:

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance51

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~0 days

Total

3

Last Release

347d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.1.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e867a0d55c06c9f829c273274cac4a6596633be2d3b2729f08ca5190886be50e?d=identicon)[keypax](/maintainers/keypax)

---

Top Contributors

[![keypax](https://avatars.githubusercontent.com/u/2960746?v=4)](https://github.com/keypax "keypax (10 commits)")[![zelenin](https://avatars.githubusercontent.com/u/1427885?v=4)](https://github.com/zelenin "zelenin (4 commits)")

---

Tags

Ratingrankingglickoglicko2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/keypax-glicko2/health.svg)](https://phpackages.com/packages/keypax-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)
