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

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

youhey/glicko2
==============

A PHP implementation of Glicko2 rating system

1.0.1(6y ago)05MITPHPPHP &gt;=7.4.0

Since May 2Pushed 6y agoCompare

[ Source](https://github.com/youhey/glicko2)[ Packagist](https://packagist.org/packages/youhey/glicko2)[ Docs](https://github.com/youhey/glicko2)[ RSS](/packages/youhey-glicko2/feed)WikiDiscussions master Synced today

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

Glicko2
=======

[](#glicko2)

A PHP implementation of [Glicko2 rating system](http://www.glicko.net/glicko.html)

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

[](#installation)

### Composer

[](#composer)

The preferred way to install this extension is through [Composer](http://getcomposer.org/).

Either run

```
php composer.phar require youhey/glicko2 "~1.0.0"

```

or add

```
"youhey/glicko2": "~1.0.0"

```

to the require section of your `composer.json`

Usage
-----

[](#usage)

Create two players with current ratings:

```
use Youhey\Glicko2\Glicko2;
use Youhey\Glicko2\Match;
use Youhey\Glicko2\Player;

$glicko = new Glicko2();

$player = new Player(1700.0, 250.0, 0.05);
$opponent = new Player(1650.0, 350.0, 0.06);

$match = new Match($player, $opponent, 1.0, 0.0);
$glicko->calculateMatch($match);

$match = new Match($player, $opponent, 3.0, 2.0);
$glicko->calculateMatch($match);

$newPlayerRating = $player->getRating();
$newOpponentRating = $opponent->getRating();
```

Author
------

[](#author)

[Ikeda Youhei](https://github.com/youhey/), e-mail:

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~1408 days

Total

2

Last Release

2253d ago

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

1.0.1PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/25f2b990cf6f1ffb466040085836580e9c87176ca4ec62c384c6af7fcfa37554?d=identicon)[youhey](/maintainers/youhey)

---

Top Contributors

[![youhey](https://avatars.githubusercontent.com/u/504187?v=4)](https://github.com/youhey "youhey (5 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/youhey-glicko2/health.svg)

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