PHPackages                             kolter/plol - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. kolter/plol

ActiveLibrary[API Development](/categories/api)

kolter/plol
===========

PHP interface wrapper to the League of Legends API

v1.0.0(10y ago)07GPL-3.0PHPPHP ^5.5.9

Since Mar 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Ozumas7/plol)[ Packagist](https://packagist.org/packages/kolter/plol)[ Docs](https://github.com/Ozumas7/plol)[ RSS](/packages/kolter-plol/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

PLoL
----

[](#plol)

[![Build Status](https://camo.githubusercontent.com/14b16b6f38dc581e918c6e336a577e84d89e085e1456c23ba2eab01b7cb9e941/68747470733a2f2f7472617669732d63692e6f72672f4f7a756d6173372f706c6f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Ozumas7/plol)[![Latest Stable Version](https://camo.githubusercontent.com/0b4b4d705ebc8d2931ce50c619e0e4655ec0fb7f9ae04c7b5e14f1f4b4ea281f/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6c7465722f706c6f6c2f762f737461626c65)](https://packagist.org/packages/kolter/plol) [![Total Downloads](https://camo.githubusercontent.com/71525be7f24102c672e129565c0fc603343166b160d19521c60835a2642b8f75/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6c7465722f706c6f6c2f646f776e6c6f616473)](https://packagist.org/packages/kolter/plol) [![Latest Unstable Version](https://camo.githubusercontent.com/5782ed63b93e13241e629a50ed6a50a9aec01b37840169bb98df0eebf3cfe593/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6c7465722f706c6f6c2f762f756e737461626c65)](https://packagist.org/packages/kolter/plol) [![License](https://camo.githubusercontent.com/4665ab50cd57dca8437f4f3e40c5dec8b17b23fc8f2c2bee33b2a60027f4f4ff/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6c7465722f706c6f6c2f6c6963656e7365)](https://packagist.org/packages/kolter/plol)

PLoL is a PHP API that tries to simplify with the [League of Legends API](https://developer.riotgames.com)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

[](#libraries-used)

- [guzzlehttp/guzzle](https://github.com/guzzlehttp/guzzle) to handle requests
- [tedivm/stash](https://github.com/tedivm/stash) to handle the cache system
- [symfony/yaml](https://github.com/symfony/yaml) in a Output mode class to output results in yaml

How to install
--------------

[](#how-to-install)

Using [Composer](https://getcomposer.org/)

```
composer require "kolter/plol" dev-master

```

**composer.json**

```
"require":
{
"kolter/plol":"dev-master"
}

```

Configuration
-------------

[](#configuration)

First of all, get your [League of Legends API KEY](https://developer.riotgames.com/). 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
---------------

[](#basic-api-usage)

This library use the PSR-4 implementation of namespaces. Basic implementation:

```
