Download the PHP package kolter/plol without Composer
On this page you can find all versions of the php package kolter/plol. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package plol
Short Description PHP interface wrapper to the League of Legends API
License GPL-3.0
Homepage https://github.com/Ozumas7/plol
Informations about the package plol
PLoL
PLoL is a PHP API that tries to simplify with the League of Legends API The main focus is to add versability and scalability. It implements a cache system and a rate limiter handler, custom output modes, custom error codes handler.
Libraries used
- guzzlehttp/guzzle to handle requests
- tedivm/stash to handle the cache system
- symfony/yaml in a Output mode class to output results in yaml
How to install
Using Composer
composer.json
Configuration
First of all, get your League of Legends API KEY. You will need this api key to instance resources. In the config/config.json folder there are some parameters you may want to change:
There are some default options that you may consider change:
- cache: true means resources will be cached, false won't.
- region: default region to the api. (check regions acronym)
Basic Api Usage
This library use the PSR-4 implementation of namespaces. Basic implementation:
This is basic usage, you will get the result in json (by default). you can set some option in one specified instance.
Take a look at the ResourceRequest class API for more information.
Structure
Resources are what you can get in the League of Legends API. Bellow there are different resources and how to use them, with examples.
ResourceHandler
Every resource class extends from this. This is where the core is.
Champion
Get info of a specific champion
Featured Games
Get info of the current game.
Game
Get info of the current game.
League
Get info of the current game.
All versions of plol with dependencies
symfony/yaml Version 3.0.1
tedivm/stash Version ^0.14
guzzlehttp/guzzle Version ~6.0