ta9to / php-riot-games-api
PHP Wrapper for Riot Games API
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/ta9to/php-riot-games-api
Requires
- php: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-11-28 15:37:06 UTC
README
PHP Wrapper for Riot Games API
Install
$ composer require ta9to/php-riot-games-api
Usage
GameConstant
use Ta9to\RiotGamesApi\GameConstant; echo GameConstant::seasons(); // [{"id": 0, "season": "PRESEASON 3"}, {"id": 1, "season": "SEASON 3"}, ...
DataDragon
use Ta9to\RiotGamesApi\DataDragon; echo DataDragon::versions(); // ["11.13.1","11.12.1","11.11.1","11.10.1","11.9.1","11.8.1","11.7.1","11.6.1"... echo DataDragon::champion('11.13.1', 'en_US'); // {"type":"champion","format":"standAloneComplex","version":"11.13.1","data":{"Aatrox"...
Todo
- get champion detail (http://ddragon.leagueoflegends.com/cdn/11.13.1/data/en_US/champion/Aatrox.json)
- resolve image path
- call api with token