lolprosgg/seraphp

Wrapper around Riot Games APIs.

0.0.5 2023-04-13 16:02 UTC

This package is auto-updated.

Last update: 2024-04-14 15:59:40 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.

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%
LOL Status v3 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%
Spectator v4 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.