lolprosgg / seraphp
Wrapper around Riot Games APIs.
0.0.5
2023-04-13 16:02 UTC
Requires
- php: >=8.1
- ext-ctype: *
- ext-iconv: *
- ext-json: *
- koriym/http-constants: ^1.2
- myclabs/php-enum: ^1.8
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
- ramsey/collection: ^2.0
- symfony/cache: ^6.2
- webmozart/assert: ^1.11
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- nyholm/psr7: ^1.6
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^9.6
- symfony/console: ^6.2
- symfony/http-client: ^6.2
- symfony/polyfill-ctype: ^v1.27
- symfony/polyfill-php80: ^v1.27
- symfony/runtime: ^6.2
- symfony/var-dumper: ^6.2
This package is auto-updated.
Last update: 2025-03-14 17:57:58 UTC
README
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
SeraPHPhine is available via Composer. 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
⚠️ APIs that have their names
strikethroughare deprecated and will be removed.
API | Docs | Status |
---|---|---|
Account v1 | docs | 100% |
Champion Mastery v4 | docs | 100% |
Champion v3 | docs | 100% |
Clash v1 | docs | 100% |
League Exp v4 | docs | 100% |
League v4 | docs | 100% |
LOL Challenges v1 | docs | 0% |
docs | 100% | |
LOL Status v4 | docs | 100% |
LOR Deck v1 | docs | 0% |
LOR Inventory v1 | docs | 0% |
LOR Match v1 | docs | 100% |
LOR Ranked v1 | docs | 100% |
LOR Status v1 | docs | 100% |
Match v5 | docs | 100% |
docs | 100% | |
Spectator v5 | docs | 100% |
Summoner v4 | docs | 100% |
TFT League v1 | docs | 100% |
TFT Match v1 | docs | 100% |
TFT Summoner v1 | docs | 100% |
Third Party Code v4 | docs | 100% |
Tournament Stub v5 | docs | 0% |
Tournament v5 | docs | 0% |
VAL Content v1 | docs | 100% |
VAL Match v1 | docs | 0% |
VAL Ranked v1 | docs | 0% |
VAL Status v1 | docs | 0% |
--------------------- | ------------------------------------------------------------------ | -------- |
Usage
<?php require_once('vendor/autoload.php'); $config = new \SeraPHP\API\Configuration([ 'api_key' => 'PASTE-YOUR-API-KEY-HERE', ]); $riotApi = new \SeraPHP\Seraphphine($config); $lolStatus = $riotApi->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.