PHPackages                             jleagle/elo-score-calculator - 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. jleagle/elo-score-calculator

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

jleagle/elo-score-calculator
============================

Calculate expected score and new ELO score

0.0.3(10y ago)81761PHPPHP &gt;=5.4

Since Feb 4Pushed 10y agoCompare

[ Source](https://github.com/Jleagle/elo-score-calculator)[ Packagist](https://packagist.org/packages/jleagle/elo-score-calculator)[ RSS](/packages/jleagle-elo-score-calculator/feed)WikiDiscussions master Synced 2d ago

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

elo-score-calculator
====================

[](#elo-score-calculator)

[![Build Status (Scrutinizer)](https://camo.githubusercontent.com/e82dbd338a87ea22c87808fc2a4c81bcb1ce5749db1ac7ed1aefadfbf6c2146f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a6c6561676c652f656c6f2d73636f72652d63616c63756c61746f722f6261646765732f6275696c642e706e67)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator)[![Code Quality (scrutinizer)](https://camo.githubusercontent.com/f150a3463d8d4935341a957ab178dad2c28995a10f295c680c2bbc671aabbde1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4a6c6561676c652f656c6f2d73636f72652d63616c63756c61746f722f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator)[![Latest Stable Version](https://camo.githubusercontent.com/aea814b5b9a41121818445d6fae6c4d450ce7fea499d88e74daadedfa5e02e6b/68747470733a2f2f706f7365722e707567782e6f72672f4a6c6561676c652f656c6f2d73636f72652d63616c63756c61746f722f762f737461626c652e706e67)](https://packagist.org/packages/Jleagle/elo-score-calculator)[![Latest Unstable Version](https://camo.githubusercontent.com/fc3391aa654989d62c518e87efce1f46e0a41de8e1c8733baf1d6789495dd015/68747470733a2f2f706f7365722e707567782e6f72672f4a6c6561676c652f656c6f2d73636f72652d63616c63756c61746f722f762f756e737461626c652e706e67)](https://packagist.org/packages/Jleagle/elo-score-calculator)

Calculate expected score and new ELO score

Usage
-----

[](#usage)

Add Elo to your `composer.json`

```
{
    "require": {
        "jleagle/elo-score-calculator": "*"
    }
}

```

Download the package

```
$ php composer.phar update jleagle/elo-score-calculator

```

Give Elo the players current scores and who won/lost/drew

```
$elo = new Elo(
  90, 60, Elo::WIN, Elo::LOST
);

$elo = new Elo(
  90, 90, Elo::DRAW, Elo::DRAW
);
```

Get the chance of each player winning

```
$expectedScore = $elo->getExpected();
```

Get the players new scores

```
$newRatings = $elo->getRatings();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3828d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

eloelo-scoresystemRatingscorepointselo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jleagle-elo-score-calculator/health.svg)

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

###  Alternatives

[kartik-v/bootstrap-star-rating

A simple yet powerful JQuery star rating plugin for Bootstrap.

1.1k4.5M5](/packages/kartik-v-bootstrap-star-rating)[qcod/laravel-gamify

Add gamification in laravel app with reputation point and badges support

680347.0k1](/packages/qcod-laravel-gamify)[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)
