lolprosgg/seraphp

Wrapper around Riot Games APIs.

0.0.5 2023-04-13 16:02 UTC

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 strikethrough are 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.