PHP Wrapper for Riot Games API allows you to quickly make calls to the RIOT API with a proper API Key. Simply replace API_KEY_HERE with your API key from Riot Games
Testing.php is a simple testing class that shows how to call all the functions
- Replace API_KEY_HERE
- Create an instance of riotapi - $instance = new riotapi();
- Make Calls to the functions listed below and receive JSON data
getSummonerByName($region,$summoner_name);
getSummoner($region,$summoner_id);
getSummoner($region,$summoner_id,'masteries');
getSummoner($region,$summoner_id,'runes');
getSummoner($region,$summoner_id,'name');
getStats($region,$summoner_id);
getStats($region,$summoner_id,'ranked');
getTeam($region,$summoner_id);
getLeague($region,$summoner_id);
getGame($region,$summoner_id);
getChampion($region);
Rate Limiting - You can currently send 5 requests per 10 seconds or 50 per 10 minutes.
Region Checking - Some functions are only available in certain regions and not in others.
Name Sanitization - Not sure how to handle all types of names
Error Code Handling - This assumes the request works every time