Download the PHP package devtemple/lara-lol without Composer
On this page you can find all versions of the php package devtemple/lara-lol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devtemple/lara-lol
More information about devtemple/lara-lol
Files in devtemple/lara-lol
Package lara-lol
Short Description This is a package, which help you work simplier with League of Legends API
License MIT
Informations about the package lara-lol
Laralol
This is a Laravel package which let you faster getting data from League of Legends API.
Getting Started
Install this package with packagist.
Installing
Type with you terminal:
Set API key
Open your .env file and set a which you can generate on the League of Legends developers API page
Options
You can export config files:
Default server:
Default season:
Possible is define server with every new call endpoint with function:
ex.
How use
League of Legends API giving use some endpoint to get different data from the RIOT servers.
Every call to endpoint require one function:
If you want, you can set attribute with fields you want get from the call. You can define array with fields or one field. You can set it empty and get all data from the endpoint.
ex.
List of all fields for specific endpoints you can find on League of Legends API Full Reference
Champion
Champion endpoint let us get some data about champions. This endpoint don't have any specified for it functions.
ex.
Champion Mastery
Champion Mastery Endpoint let us get information about masteries champions for specified summoner. We have some functions which we can use for get some data.
This function let us get a scores for specified summoner ID
This function give us information about scores for every summoner champion by summoner ID
This function give us information about scores for specific champion ID and summoner ID
ex.
League
League endpoint give you some data about challenger and masters leagues and leagues for specified summoners. You can do this with some specified functions.
This combination functions let you get information about challenger or master league:
This function let you get league by league ID
This function let you get leagues for specified summoner ID
ex.
Lol Status
Lol Status endpoint give you information about specified server. This endpoint don't have any specified functions.
ex.
Match
Match endpoint give you some data about matches and timelines for specific match. This endpoint have a some specified functions.
Options which you can use is:
- champion
- season
- queue
- beginIndex
- endIndex
- beginTime
- endTime
// Notice: Working with tournament code require specific policy for your API.
ex.
Spectator
Spectator endpoint give you some information about summoner if he is in game or give you featured games. You can take information with two specified functions.
This function return for you featured games:
This function give you information if user is in game now:
ex.
Summoner
Summoner endpoint let us get data about summoner like a account ID, summoner ID, name or icon ID. This endpoint has some functions which let us get awesome data from League of Legends API.
This functions let us get information about summoner:
ex.
Third Party Code
Third Party Code endpoint return for you third party code defined in the League of Legends Client. You can do this with one specified function.
This function give you third party code for specified summoner:
ex.
TOURNAMENT STUB
This endpoint let you work with Tournament codes and tournament matches. This is a stub for testing and only working on development . If you want know to options, go on lol api reference and check what you can use.
This function give you tournament stub data:
TOURNAMENT
This endpoint let you use all functions from tournament stub endpoint and extra few functions. You need to remember if you want use this endpoint, you need a .
Check some additional functions:
Built With
- Guzzle - Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.
Authors
- Adrian Kuriata - Initial work - AdrianKuriata
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details