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: 2024-11-14 17:23:55 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.
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.