PHPackages                             spiregg/riot-api-base - 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. [API Development](/categories/api)
4. /
5. spiregg/riot-api-base

ActiveLibrary[API Development](/categories/api)

spiregg/riot-api-base
=====================

Generic base for simple Riot API PHP wrapper implementation.

2.4.1(12mo ago)08862GPL-3.0-or-laterPHPPHP &gt;=8.2CI failing

Since Mar 19Pushed 12mo agoCompare

[ Source](https://github.com/SpireGG/riot-api-base)[ Packagist](https://packagist.org/packages/spiregg/riot-api-base)[ Docs](https://github.com/spiregg/riot-api-base)[ Fund](https://www.paypal.me/dolejskad)[ GitHub Sponsors](https://github.com/dolejska-daniel)[ RSS](/packages/spiregg-riot-api-base/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (2)

RiotAPI PHP8 wrapper base
=========================

[](#riotapi-php8-wrapper-base)

> Version v2.0.0

[![example workflow](https://github.com/dolejska-daniel/riot-api-base/actions/workflows/php.yaml/badge.svg)](https://github.com/dolejska-daniel/riot-api-base/actions)[![Code Coverage](https://camo.githubusercontent.com/fadc39e0ebc4fa4dc4d20ccb58a52583dfb75a1bccd37fb745c1f383588eeb98/68747470733a2f2f636f6465636f762e696f2f67682f646f6c656a736b612d64616e69656c2f72696f742d6170692d626173652f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d515351325353524c5039)](https://codecov.io/gh/dolejska-daniel/riot-api-base)[![Packagist](https://camo.githubusercontent.com/657edc9b5d300a646ed70ffce9f880595d98df71c8f373141c3cbc38b8633bf2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f6c656a736b612d64616e69656c2f72696f742d6170692d62617365)](https://packagist.org/packages/dolejska-daniel/riot-api-base)[![Packagist PHP Version Support](https://camo.githubusercontent.com/9e844d96220721e3f8be8d16b85d455b2040ac55a0680c2c43495ab01ce63243/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d62617365)](https://camo.githubusercontent.com/9e844d96220721e3f8be8d16b85d455b2040ac55a0680c2c43495ab01ce63243/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d62617365)[![Support Project](https://camo.githubusercontent.com/b02c365c454c108cca464a159068651024c682b392cef984e92b93eb49310a7d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737570706f72745f70726f6a6563742d50617950616c2d626c7565)](https://www.paypal.me/dolejskad)

Introduction
============

[](#introduction)

Hello and welcome to the RiotAPI wrapper base repository for PHP7! This repository contains all the *generic* necessities for implementation of any Riot API. The implementation is being used by concrete game API implementations such as League of Legends, Teamfight Tactics, Legends of Runeterra or Valorant - these game APIs can be found below.

Downloading
===========

[](#downloading)

There sould be no need to download this library on its own, because it doesn't do much on its own. To download API for a Riot game, please refer to the repositories of API implementations below.

Library DescriptionLatest VersionStable Version[All APIs](https://github.com/dolejska-daniel/riot-api) (metapackage)[![GitHub Latest Release](https://camo.githubusercontent.com/fc16ce8581402b4eb4b93d1f4b3981a0433d9b6b506aef25a51e56a483984fd2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170693f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/fc16ce8581402b4eb4b93d1f4b3981a0433d9b6b506aef25a51e56a483984fd2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170693f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/8ba5b2a63587dc833749d22b715e73b662f44a2662446ea350af0958e8f34e41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d617069)](https://camo.githubusercontent.com/8ba5b2a63587dc833749d22b715e73b662f44a2662446ea350af0958e8f34e41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d617069) [![PHP Version](https://camo.githubusercontent.com/e30cbd31f2797d041b7f02112c3e86b23cd3eec1447558692dfb19c692b5f0de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d617069)](https://camo.githubusercontent.com/e30cbd31f2797d041b7f02112c3e86b23cd3eec1447558692dfb19c692b5f0de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d617069)[League of Legends API](https://github.com/dolejska-daniel/riot-api-league)[![GitHub Latest Release](https://camo.githubusercontent.com/1ce21cb1d86396d7f04b1fe20372973bf6e2d5d0b18b65bf7f0c6d6f3662efee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c65616775653f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/1ce21cb1d86396d7f04b1fe20372973bf6e2d5d0b18b65bf7f0c6d6f3662efee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c65616775653f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/d46faa7cfc100b61ed3c32544f22680a78a4ed59047fad94cfc0f4c35aada28b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c6561677565)](https://camo.githubusercontent.com/d46faa7cfc100b61ed3c32544f22680a78a4ed59047fad94cfc0f4c35aada28b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c6561677565) [![PHP Version](https://camo.githubusercontent.com/6437df40cd663c1b77d0695134196f6bcaeeacb4818a8b83060b6427e002240a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c6561677565)](https://camo.githubusercontent.com/6437df40cd663c1b77d0695134196f6bcaeeacb4818a8b83060b6427e002240a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d6c6561677565)[DataDragon API](https://github.com/dolejska-daniel/riot-api-datadragon)[![GitHub Latest Release](https://camo.githubusercontent.com/f2dec5203e6eb50e279e43801e2c9bf7cc93c64b9d35bf4615434463cdae29ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e3f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/f2dec5203e6eb50e279e43801e2c9bf7cc93c64b9d35bf4615434463cdae29ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e3f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/ed28a7655e66f21e9c1cafed9ed6a70afa88a1c28af55731df3a00cdafab0190/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e)](https://camo.githubusercontent.com/ed28a7655e66f21e9c1cafed9ed6a70afa88a1c28af55731df3a00cdafab0190/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e) [![PHP Version](https://camo.githubusercontent.com/d1deee43a59332c74648917c46484cb29735aed922de8ee446b6c529b9a650ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e)](https://camo.githubusercontent.com/d1deee43a59332c74648917c46484cb29735aed922de8ee446b6c529b9a650ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d64617461647261676f6e)[Teamfight Tactics API](https://github.com/dolejska-daniel/riot-api-tft)[![GitHub Latest Release](https://camo.githubusercontent.com/63dc5e5abb7d97d71a453297fc4ee5170bcea4956bc996ee49f083cc030c903e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d7466743f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/63dc5e5abb7d97d71a453297fc4ee5170bcea4956bc996ee49f083cc030c903e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d7466743f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/00464043a817c4304c2c7d1a0b93d41e7870bd8cfb54739b2950ada12a4f3395/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d746674)](https://camo.githubusercontent.com/00464043a817c4304c2c7d1a0b93d41e7870bd8cfb54739b2950ada12a4f3395/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d746674) [![PHP Version](https://camo.githubusercontent.com/c2173df2e272f5c132e88adeb6b3658a66437d48aeee4c6e02e12ed094c70ec7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d746674)](https://camo.githubusercontent.com/c2173df2e272f5c132e88adeb6b3658a66437d48aeee4c6e02e12ed094c70ec7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d746674)[Legends of Runeterra API](https://github.com/dolejska-daniel/riot-api-runeterra)[![GitHub Latest Release](https://camo.githubusercontent.com/c20a15e82643e729a97880a0245f16628176794c7ac14dad511d7bca15384bb5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e6574657272613f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/c20a15e82643e729a97880a0245f16628176794c7ac14dad511d7bca15384bb5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e6574657272613f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/990a55bd6f3a5bc743918bd3d35afd94a84be51979434d90da6d936de7bb2e0d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e657465727261)](https://camo.githubusercontent.com/990a55bd6f3a5bc743918bd3d35afd94a84be51979434d90da6d936de7bb2e0d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e657465727261) [![PHP Version](https://camo.githubusercontent.com/940c6bcaa72c925cf6f683fe52c5a66d8ac0ba9883f0d1b4e52f8b3f3b799753/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e657465727261)](https://camo.githubusercontent.com/940c6bcaa72c925cf6f683fe52c5a66d8ac0ba9883f0d1b4e52f8b3f3b799753/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d72756e657465727261)[Valorant API](https://github.com/dolejska-daniel/riot-api-valorant)[![GitHub Latest Release](https://camo.githubusercontent.com/4a23913f4c1140b7eb5dcf1acb9ae8fbecd4a89588ed0a70270bf135fa3a1f3f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e743f696e636c7564655f70726572656c6561736573)](https://camo.githubusercontent.com/4a23913f4c1140b7eb5dcf1acb9ae8fbecd4a89588ed0a70270bf135fa3a1f3f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e743f696e636c7564655f70726572656c6561736573)[![GitHub Release](https://camo.githubusercontent.com/bdaefc838c45bb8148788d3c70af1f0db042b6ad917458e205df9218f5f2a700/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e74)](https://camo.githubusercontent.com/bdaefc838c45bb8148788d3c70af1f0db042b6ad917458e205df9218f5f2a700/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e74) [![PHP Version](https://camo.githubusercontent.com/3a4a40e95333bf2194999127fd32c2c583c07bd252e0c935be5ebb289f465b6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e74)](https://camo.githubusercontent.com/3a4a40e95333bf2194999127fd32c2c583c07bd252e0c935be5ebb289f465b6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646f6c656a736b612d64616e69656c2f72696f742d6170692d76616c6f72616e74)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance50

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.3% 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 ~165 days

Recently: every ~144 days

Total

6

Last Release

364d ago

Major Versions

v1.0.0 → 2.0.02023-11-23

PHP version history (2 changes)v1.0.0PHP &gt;=8.1

2.4.0PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4965058?v=4)[Nicolas](/maintainers/chypriote)[@chypriote](https://github.com/chypriote)

---

Top Contributors

[![dolejska-daniel](https://avatars.githubusercontent.com/u/10078080?v=4)](https://github.com/dolejska-daniel "dolejska-daniel (291 commits)")[![chypriote](https://avatars.githubusercontent.com/u/4965058?v=4)](https://github.com/chypriote "chypriote (10 commits)")[![hackoh](https://avatars.githubusercontent.com/u/497444?v=4)](https://github.com/hackoh "hackoh (3 commits)")[![elreco](https://avatars.githubusercontent.com/u/42843594?v=4)](https://github.com/elreco "elreco (1 commits)")[![FlorianMifsud](https://avatars.githubusercontent.com/u/54841233?v=4)](https://github.com/FlorianMifsud "FlorianMifsud (1 commits)")[![dgunay](https://avatars.githubusercontent.com/u/16074091?v=4)](https://github.com/dgunay "dgunay (1 commits)")[![primus852](https://avatars.githubusercontent.com/u/5185509?v=4)](https://github.com/primus852 "primus852 (1 commits)")[![santutu](https://avatars.githubusercontent.com/u/28470293?v=4)](https://github.com/santutu "santutu (1 commits)")[![strebl](https://avatars.githubusercontent.com/u/6151204?v=4)](https://github.com/strebl "strebl (1 commits)")[![TheKeymaster](https://avatars.githubusercontent.com/u/20555112?v=4)](https://github.com/TheKeymaster "TheKeymaster (1 commits)")[![tristanbes](https://avatars.githubusercontent.com/u/346010?v=4)](https://github.com/tristanbes "tristanbes (1 commits)")

---

Tags

apiwrapperbasephp8Riot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spiregg-riot-api-base/health.svg)

```
[![Health](https://phpackages.com/badges/spiregg-riot-api-base/health.svg)](https://phpackages.com/packages/spiregg-riot-api-base)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M514](/packages/shopware-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

232.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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