karol-szarafinowski / riot-games-api
此软件包已被 放弃,不再维护。未建议替代包。
Riot Games API 包装器
4.0.0
2019-01-31 18:08 UTC
Requires
- php: >=7.2.0
This package is not auto-updated.
Last update: 2021-05-30 11:24:39 UTC
README
我不是Riot Games的推荐者,这也不代表Riot Games或任何官方参与《英雄联盟》制作或管理的人员的观点或意见。《英雄联盟》和Riot Games是Riot Games Inc.的商标或注册商标。《英雄联盟》©
安装
$ composer require karol-szarafinowski/riot-games-api
示例
<?php
use KarolSzarafinowski\RiotGamesApi\LeagueOfLegendsApi;
use KarolSzarafinowski\RiotGamesApi\Server;
$api = new LeagueOfLegendsApi("API_KEY");
$summoner = $api->getSummonerByName(Server::EUROPE_EAST, "eška");
$code = $api->getSummonerThridPartyCode(Server::EUROPE_EAST, $summoner->id);
var_dump($summoner);
var_dump($code);
/*
RETURNS:
object(KarolSzarafinowski\RiotGamesApi\Structures\SummonerInfo)#123 (6) {
["id"]=>
int(35315624)
["accountId"]=>
int(40010417)
["name"]=>
string(5) "eška"
["profileIconId"]=>
int(616)
["revisionDate"]=>
int(1527456946000)
["summonerLevel"]=>
int(82)
}
string(12) "Unlucky.pl-2"
*/
要求
- PHP7.2+