PHP Wrapper for Riot Games API
PHP Wrapper for Riot Games API allows you to quickly make calls to the RIOT API with a proper API Key. Key features include caching (if enabled) and rate limiting. Simply replace API_KEY_HERE with your API key from Riot Games., (*1)
Testing.php is a simple testing class that shows how to call all the functions., (*2)
//Returns all champion information. getChampion(); // Returns all free champions. getFreeChampions(); //performs a static call. Not counted in rate limit. getStatic($call, $id); //New Riot API call. Returns match details given a match id. getMatch($matchId); //Returns a user's matchHistory given their summoner id. getMatchHistory($summoner_id); //Returns game statistics given a summoner's id. getGame($summoner_id); //Returns the league of a given summoner. getLeague($summoner_id); getLeague($summoner_id, "entry"); //Returns league information given a *list* of teams. getLeagueByTeam($team_ids); //Returns the challenger ladder. getChallenger(); //Returns a summoner's stats given summoner id. getStats($summoner_id); getStats($summoner_id,'ranked'); //returns a summoner's id getSummonerId($summoner_name); //Returns summoner info given summoner id. getSummoner($summoner_id); getSummoner($summoner_id,'masteries'); getSummoner($summoner_id,'runes'); getSummoner($summoner_id,'name'); //Gets a summoner's info given their name, instead of id. getSummonerByName($summoner_name); //Gets the teams of a summoner, given summoner id. getTeam($summoner_id);
Region Checking - Some functions are only available in certain regions and not in others., (*3)