dowdow / league-of-legends-api-bundle
A Symfony 2 client for the League of Legends API
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- guzzlehttp/guzzle: 5.0 - 6.0
- symfony/framework-bundle: 2.3 - 3.0
This package is not auto-updated.
Last update: 2021-05-10 10:24:17 UTC
README
The League of Legends API Bundle provides the ability to communicate with the Riot Games API : https://developer.riotgames.com/
This project is currently abandoned. If you want to take it back, please contact me so I can add you as a contributor.
Installation
Add the following line in your composer.json
file :
"require": { "dowdow/league-of-legends-api-bundle": "dev-master" }
Add the bundle in your AppKernel.php
file :
$bundles = array( ... new Dowdow\LeagueOfLegendsAPIBundle\DowdowLeagueOfLegendsAPIBundle(), );
Configuration
Add your developer API key in your parameters.yml
file :
# app/config/parameters.yml parameters: dowdow_league_of_legends_api: key: 054684ee6-7848-4101-this5is58my1key35bitch789
Content
All these features represent different web services provided by Riot Games. Each of REST web services is represented by a Symfony service which contains a method for each available roots.
These methods return objects that are available in the Entity directory.
All objects are also doctrine entities which allows you to create your own database and thus avoids the rate limit imposed by Riot Games.
Champion
Retrieves information about the champions status.
Get all the champion statuses :
$champions = $this ->get('dowdow_league_of_legends_api.service_champion') ->getChampions(Region::EUW);
Get a champion status by id :
$champion = $this ->get('dowdow_league_of_legends_api.service_champion') ->getChampionById(53, Region::EUW);
Game
Retrieves information about the recent games of a summoner.
Get a summoner recent games :
$summoner = $this ->get('dowdow_league_of_legends_api.service_game') ->getGameBySummonerId(29274653, Region::EUW);
League
Retrieves information about leagues.
Get leagues from summoner ids :
$array = $this ->get('dowdow_league_of_legends_api.service_league') ->getLeagueBySummonerIds(array('25955715', '26916921', '29274653'), Region::EUW);
Get leagues entry from summoner ids :
$array = $this ->get('dowdow_league_of_legends_api.service_league') ->getLeagueEntryBySummonerIds(array('25955715', '26916921', '29274653'), Region::EUW);
Get leagues from team ids :
$array = $this ->get('dowdow_league_of_legends_api.service_league') ->getLeagueByTeamIds(array('TEAM-b24a4040-b911-11e3-a3ae-782bcb4ce61a', 'TEAM-90af5320-8f7d-11e3-8ce3-782bcb497d6f'), Region::EUW);
Get leagues entry from team ids :
$array = $this ->get('dowdow_league_of_legends_api.service_league') ->getLeagueEntryByTeamIds(array('TEAM-b24a4040-b911-11e3-a3ae-782bcb4ce61a', 'TEAM-90af5320-8f7d-11e3-8ce3-782bcb497d6f'), Region::EUW);
Get the challenger tier for a region and a queue type :
$league = $this ->get('dowdow_league_of_legends_api.service_league') ->getChallengerTier(Region::EUW, QueueType::RANKED_SOLO_5x5);
LoL Static Data
Work in progress
LoL Status
Retrieves information about the service status.
Get all the shard status :
$shards = $this ->get('dowdow_league_of_legends_api.service_lolstatus') ->getShards();
Get a shard status by region and incident status :
$shards = $this ->get('dowdow_league_of_legends_api.service_lolstatus') ->getShardsByRegion(Region::EUW);
Match
Work in progress
Match History
Work in progress
Stats
Work in progress
Summoner
Retrieves information about summoner status, mastery status and runes status.
Get summoners status by summoner names :
$summoners = $this ->get('dowdow_league_of_legends_api.service_summoner') ->getSummonersByNames(array('Voldamar', 'Dayke', 'palanos'), Region::EUW);
Get summoners status by summoner ids :
$summoners = $this ->get('dowdow_league_of_legends_api.service_summoner') ->getSummonersByIds(array('25955715', '26916921', '29274653'), Region::EUW);
Get summoners mastery :
$summoners = $this ->get('dowdow_league_of_legends_api.service_summoner') ->getSummonersMasteries(array('25955715', '26916921', '29274653'), Region::EUW);
Get summoner names by summoner ids :
$names = $this ->get('dowdow_league_of_legends_api.service_summoner') ->getSummonersNames(array('25955715', '26916921', '29274653'), Region::EUW);
Get summoner runes :
$summoners = $this ->get('dowdow_league_of_legends_api.service_summoner') ->getSummonersRunes(array('25955715', '26916921', '29274653'), Region::EUW);
Team
Retrieves information about teams.
Get team by summoner ids :
$teams = $this ->get('dowdow_league_of_legends_api.service_team') ->getTeamBySummonerIds(array('25955715', '26916921', '29274653'), Region::EUW);
Get team by team ids :
$teams = $this ->get('dowdow_league_of_legends_api.service_team') ->getTeamByIds(array('TEAM-b24a4040-b911-11e3-a3ae-782bcb4ce61a', 'TEAM-90af5320-8f7d-11e3-8ce3-782bcb497d6f'), Region::EUW);