PHPackages                             youhey/elo - 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/elo

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

youhey/elo
==========

A PHP implementation of Elo rating system

1.0.1(6y ago)02MITPHPPHP &gt;=7.4.0CI failing

Since Mar 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/youhey/elo)[ Packagist](https://packagist.org/packages/youhey/elo)[ Docs](https://github.com/youhey/elo)[ RSS](/packages/youhey-elo/feed)WikiDiscussions master Synced 3w ago

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

Elo Rating PHP
==============

[](#elo-rating-php)

A PHP implements of [Elo rating system](http://en.wikipedia.org/wiki/Elo_rating_system).

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

[](#installation)

### Composer

[](#composer)

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

Either run

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

```

or add

```
"youhey/elo": "~1.0.0"

```

to the require section of your `composer.json`

Usage
-----

[](#usage)

Create two players with current ratings:

```
use Youhey\Elo\Elo;
use Youhey\Elo\Match;
use Youhey\Elo\Player;

$elo = new Elo();

$player = new Player(1700.0);
$opponent = new Player(1650.0);

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

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

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

Author
------

[](#author)

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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~0 days

Total

2

Last Release

2306d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/504187?v=4)[IKEDA Youhei](/maintainers/youhey)[@youhey](https://github.com/youhey)

---

Top Contributors

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

---

Tags

Ratingrankingelo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/youhey-elo/health.svg)

```
[![Health](https://phpackages.com/badges/youhey-elo/health.svg)](https://phpackages.com/packages/youhey-elo)
```

###  Alternatives

[rubix/ml

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

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

A simple yet powerful JQuery star rating plugin for Bootstrap.

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

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

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

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

309356.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)

474.3M8](/packages/kartik-v-yii2-widget-rating)[phpskills/phpskills

Implementation of Microsoft's TrueSkill matchmaking system for PHP

773.8k](/packages/phpskills-phpskills)

PHPackages © 2026

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