{"id":24414643,"url":"https://github.com/jleagle/elo-score-calculator","last_synced_at":"2025-04-12T03:41:07.322Z","repository":{"id":16113276,"uuid":"18858399","full_name":"Jleagle/elo-score-calculator","owner":"Jleagle","description":"A PHP class to generate points using an ELO rating system","archived":false,"fork":false,"pushed_at":"2015-11-18T10:50:38.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T23:13:46.908Z","etag":null,"topics":["elo","elo-score"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jleagle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-16T22:21:45.000Z","updated_at":"2023-05-19T22:50:59.000Z","dependencies_parsed_at":"2022-09-18T07:32:33.238Z","dependency_job_id":null,"html_url":"https://github.com/Jleagle/elo-score-calculator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jleagle%2Felo-score-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jleagle%2Felo-score-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jleagle%2Felo-score-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jleagle%2Felo-score-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jleagle","download_url":"https://codeload.github.com/Jleagle/elo-score-calculator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514216,"owners_count":21116899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elo","elo-score"],"created_at":"2025-01-20T07:19:13.780Z","updated_at":"2025-04-12T03:41:07.305Z","avatar_url":"https://github.com/Jleagle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elo-score-calculator\n\n[![Build Status (Scrutinizer)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator/badges/build.png)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator)\n[![Code Quality (scrutinizer)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator/badges/quality-score.png)](https://scrutinizer-ci.com/g/Jleagle/elo-score-calculator)\n[![Latest Stable Version](https://poser.pugx.org/Jleagle/elo-score-calculator/v/stable.png)](https://packagist.org/packages/Jleagle/elo-score-calculator)\n[![Latest Unstable Version](https://poser.pugx.org/Jleagle/elo-score-calculator/v/unstable.png)](https://packagist.org/packages/Jleagle/elo-score-calculator)\n\nCalculate expected score and new ELO score\n\n## Usage\n\nAdd Elo to your `composer.json`\n\n```\n{\n    \"require\": {\n        \"jleagle/elo-score-calculator\": \"*\"\n    }\n}\n```\n\nDownload the package\n\n```\n$ php composer.phar update jleagle/elo-score-calculator\n```\n    \nGive Elo the players current scores and who won/lost/drew\n\n```php\n$elo = new Elo(\n  90, 60, Elo::WIN, Elo::LOST\n);\n\n$elo = new Elo(\n  90, 90, Elo::DRAW, Elo::DRAW\n);\n```\n\nGet the chance of each player winning\n\n```php\n$expectedScore = $elo-\u003egetExpected();\n```\n\nGet the players new scores\n\n```php\n$newRatings = $elo-\u003egetRatings();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjleagle%2Felo-score-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjleagle%2Felo-score-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjleagle%2Felo-score-calculator/lists"}