PHP code example of lolprosgg / seraphp
1. Go to this page and download the library: Download lolprosgg/seraphp library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lolprosgg / seraphp example snippets
ig = 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())
;
composer