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

ActiveLibrary

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 1w 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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2260d ago

### 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 (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.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)[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[multicaret/laravel-acquaintances

This light package, with no dependencies, gives Eloquent models the ability to manage friendships (with groups), verifications, and interactions such as: Likes, favorites, votes, subscribe, follow, ..etc. And it includes advanced rating system.

851266.9k2](/packages/multicaret-laravel-acquaintances)[willvincent/laravel-rateable

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

416452.0k3](/packages/willvincent-laravel-rateable)

PHPackages © 2026

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