Skip to content

luuksen/php-riot-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-riot-api

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

Getting Started

  • Replace API_KEY_HERE
  • Create an instance of riotapi - $instance = new riotapi();
  • Make Calls to the functions listed below and receive JSON data

Functions

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);

Not Complete

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

About

PHP Wrapper for Riot Games API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published