PHPackages                             ferranfg/elo-rating - 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. ferranfg/elo-rating

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

ferranfg/elo-rating
===================

A PHP implementation of Elo rating system

1.2.0(3y ago)014PHPPHP &gt;=5.3.0

Since Jan 11Pushed 2y agoCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

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

[](#elo-rating-php)

A PHP class which implements the [Elo rating system](http://en.wikipedia.org/wiki/Elo_rating_system) for [Fantasy Padel Tour](https://fantasypadeltour.com).

Install with composer
=====================

[](#install-with-composer)

`composer require ferranfg/elo-rating`

Link to Packagist.org:

Usage
=====

[](#usage)

```
require 'src/Rating/Rating.php';

// player A elo = 1000
// player B elo = 2000
// player A lost
// player B win

$rating = new Rating(1000, 2000, Rating::LOST, Rating::WIN);

// player A elo = 1000
// player B elo = 2000
// player A draw
// player B draw

$rating = new Rating(1000, 2000, Rating::DRAW, Rating::DRAW);

$results = $rating->getNewRatings();

echo "New rating for player A: " . $results['a'];
echo "New rating for player B: " . $results['b'];

```

---

Credits
=======

[](#credits)

[![Creative Commons License](https://camo.githubusercontent.com/3a18a398ebf9c68728504c490308489eb6803705d9250b66950a2c53a3b36978/68747470733a2f2f692e6372656174697665636f6d6d6f6e732e6f72672f6c2f62792f342e302f38307831352e706e67)](http://creativecommons.org/licenses/by/4.0/)
Elo Rating PHP by [Michal Chovanec](http://michalchovanec.com) is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.5% 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

1215d ago

### Community

Maintainers

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

---

Top Contributors

[![Chovanec](https://avatars.githubusercontent.com/u/1430817?v=4)](https://github.com/Chovanec "Chovanec (37 commits)")[![ferranfg](https://avatars.githubusercontent.com/u/195239?v=4)](https://github.com/ferranfg "ferranfg (5 commits)")[![Sysix](https://avatars.githubusercontent.com/u/3897725?v=4)](https://github.com/Sysix "Sysix (3 commits)")[![priyeshpatel](https://avatars.githubusercontent.com/u/545296?v=4)](https://github.com/priyeshpatel "priyeshpatel (1 commits)")[![lambeletjp](https://avatars.githubusercontent.com/u/2329886?v=4)](https://github.com/lambeletjp "lambeletjp (1 commits)")[![bryant1410](https://avatars.githubusercontent.com/u/3905501?v=4)](https://github.com/bryant1410 "bryant1410 (1 commits)")[![mfrankiewicz](https://avatars.githubusercontent.com/u/18583662?v=4)](https://github.com/mfrankiewicz "mfrankiewicz (1 commits)")

---

Tags

Ratingrankingelo

### Embed Badge

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

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

###  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)
