https://github.com/simivar/riot-php
Dependency-injection based wrapper for Riot Games APIs
https://github.com/simivar/riot-php
hacktoberfest league-of-legends league-of-runterra leagueoflegends leagueofrunettera lol riot riot-games riot-games-api valorant
Last synced: 5 months ago
JSON representation
Dependency-injection based wrapper for Riot Games APIs
- Host: GitHub
- URL: https://github.com/simivar/riot-php
- Owner: simivar
- License: mit
- Created: 2020-10-21T11:27:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T05:15:49.000Z (over 2 years ago)
- Last Synced: 2025-10-13T06:35:09.460Z (8 months ago)
- Topics: hacktoberfest, league-of-legends, league-of-runterra, leagueoflegends, leagueofrunettera, lol, riot, riot-games, riot-games-api, valorant
- Language: PHP
- Homepage:
- Size: 206 KB
- Stars: 10
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riot PHP [](https://codecov.io/gh/simivar/riot-php)
PHP wrapper around Riot Games APIs.
### Features
- 🎉 PSR-18 & PSR-17 compliant - no more dependency on one specific HTTP Client!
- 🎉 Dependency-injection first - easy usage with all modern frameworks!
- 🎉 GitHub Actions for Quality Assurance - it just works!
- 🎉 Single Responsibility - only API communication inside!
## Getting started
Riot PHP is available via [Composer](https://getcomposer.org/). It does not implement HTTP Client on its own
and uses PSR-17 and PSR-18 abstraction so you are free to choose any HTTP Client you want.
```
composer require simivar/riot-php symfony/http-client nyholm/psr7
```
## APIs Coverage
> :warning: APIs that have their names ~strikethrough~ are deprecated and will be removed.
| API | Docs | Status |
| -------------------- | ----------------------------------------------------------------- | ------ |
| Account v1 | [docs](https://developer.riotgames.com/apis#account-v1) | 100% |
| Champion Mastery v4 | [docs](https://developer.riotgames.com/apis#champion-mastery-v4) | 100% |
| Champion v3 | [docs](https://developer.riotgames.com/apis#champion-v3) | 100% |
| Clash v1 | [docs](https://developer.riotgames.com/apis#clash-v1) | 100% |
| League Exp v4 | [docs](https://developer.riotgames.com/apis#league-exp-v4) | 100% |
| League v4 | [docs](https://developer.riotgames.com/apis#league-v4) | 100% |
| ~Lol Status v3~ | [docs](https://developer.riotgames.com/apis#lol-status-v3) | 100% |
| Lol Status v4 | [docs](https://developer.riotgames.com/apis#lol-status-v4) | 100% |
| Lor Match v1 | [docs](https://developer.riotgames.com/apis#lor-match-v1) | 100% |
| Lor Ranked v1 | [docs](https://developer.riotgames.com/apis#lor-ranked-v1) | 100% |
| Match v4 | [docs](https://developer.riotgames.com/apis#match-v4) | 100% |
| Spectator v4 | [docs](https://developer.riotgames.com/apis#spectator-v4) | 100% |
| Summoner v4 | [docs](https://developer.riotgames.com/apis#summoner-v4) | 100% |
| Tft League v1 | [docs](https://developer.riotgames.com/apis#tft-league-v1) | 100% |
| Tft Match v1 | [docs](https://developer.riotgames.com/apis#tft-match-v1) | 100% |
| Tft Summoner v1 | [docs](https://developer.riotgames.com/apis#tft-summoner-v1) | 100% |
| Third Party Code v4 | [docs](https://developer.riotgames.com/apis#third-party-code-v4) | 100% |
| Tournament Stub v4 | [docs](https://developer.riotgames.com/apis#tournament-stub-v4) | 100% |
| Tournament v4 | [docs](https://developer.riotgames.com/apis#tournament-v4) | 100% |
| Val Content v1 | [docs](https://developer.riotgames.com/apis#val-content-v1) | 100% |
# Usage
```php
getVersion4()
->getLolStatus()
->getPlatformData(\Riot\Enum\RegionEnum::EUN1())
;
```
# Legal notice
Riot PHP isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially
involved in producing or managing Riot Games properties. Riot Games, and all associated properties are trademarks
or registered trademarks of Riot Games, Inc.