PHPackages                             elogank/php-lol-api - 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. elogank/php-lol-api

ActiveLibrary[API Development](/categories/api)

elogank/php-lol-api
===================

PHP League of Legends API

1.1(11y ago)30219[1 issues](https://github.com/EloGank/lol-php-api/issues)PHPPHP &gt;=5.4.0

Since Jul 28Pushed 11y ago10 watchersCompare

[ Source](https://github.com/EloGank/lol-php-api)[ Packagist](https://packagist.org/packages/elogank/php-lol-api)[ RSS](/packages/elogank-php-lol-api/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (10)Versions (3)Used By (0)

Since the October 1st 2014, a custom API is not fully allowed by the League of Legend's Terms of Use, only some API calls are allowed. More information :
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#since-the-october-1st-2014-a-custom-api-is-not-fully-allowed-by-the-league-of-legends-terms-of-use-only-some-api-calls-are-allowed-more-information---httpsdeveloperriotgamescom)

---

League of Legends PHP API
=========================

[](#league-of-legends-php-api)

Unofficial RTMP API fully PHP and asynchronous for League of Legends.
With this API you can retrieve some data about summoners in real-time directly from Riot servers.

**You can use the API client from this repository : **

### Features

[](#features)

- A ready-to-use API server
- **A ready-to-use Virtual Machine (no manual installation)**
- Use the powerful Symfony 2 framework components
- **Allow multi LoL account to improve the response speed**
- **Fully aynschronous (with ZeroMQ &amp; mutli process)**
- Multi region (EUW, NA, EUNE, BR, TR, RU, KR, LAN, LAS, OCE &amp; PBE)
- Anti-overload system (avoid temporary client ban when you make too many request)
- Allow to use native RTMP API or custom API with our controllers
- Fully logged in file, redis, and console (usefull for developpers)
- Automatic restart when a server is busy
- Periodic verification for client timeout
- **Automatic restart when a client timeout (due to network/server connection error for example)**
- **Automatic update when client version is outdated**
- **Allow mutliple output format (JSON, PHP native (serialized) and XML)**
- **Allow concurrent connections (multiple connections at the same time, using ReactPHP)**
- Allow to bind the server to a specific IP address (allow-only)
- Easy to override

Installation
------------

[](#installation)

[How to install this API](./doc/installation.md)
[Additional installation instructions for the production environment](./doc/installation_production.md)

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

[](#configuration)

[How to configure this API](./doc/configuration.md)

How to use
----------

[](#how-to-use)

[How to use this API](./doc/how_to_use.md)

Route list
----------

[](#route-list)

[The routing component](./doc/routing.md#route-list)

Documentation
-------------

[](#documentation)

The document is stored in the `doc` folder of this repository. Here, the main titles :

- [Installation](./doc/installation.md)
- [Installation (production environment)](./doc/installation_production.md)
- [Configuration](./doc/configuration.md)
- [How to use](./doc/how_to_use.md)
- [Routing](./doc/routing.md)
- [Caching](./doc/caching.md)
- [Contribute](./doc/contribute.md)

Important notes
---------------

[](#important-notes)

Use a **development account** for your tests, and **not your real live game account**.
Be aware that only one API/person can be connected at the same time with the same account. If you have production server and development server, use two distinct accounts.

Related projects
----------------

[](#related-projects)

- [LoL Replay Downloader](https://github.com/EloGank/lol-replay-downloader)

Known issues
------------

[](#known-issues)

- Fix issue on SIGINT signal (CTRL + C) (ReactPHP issue : [reactphp/reactphp#296](https://github.com/reactphp/reactphp/issues/296))

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Feel free to open an issue, fork this project or suggest an awesome new feature in the [issue tracker](https://github.com/EloGank/lol-php-api/issues).
When reporting an issue, please include your asynchronous configuration (enabled or not).

Credit
------

[](#credit)

See the list of [contributors](https://github.com/EloGank/lol-php-api/graphs/contributors).
The RTMP client class is a PHP partial rewrite of the awesome [Gabriel Van Eyck's work](https://code.google.com/p/lolrtmpsclient/source/browse/trunk/src/com/gvaneyck/rtmp/RTMPSClient.java).

Licence
-------

[](#licence)

[Creative Commons Attribution-ShareAlike 3.0](./LICENCE.md)

*League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends (c) Riot Games, Inc.*

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~170 days

Total

2

Last Release

4186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1122160?v=4)[Sylvain Lorinet](/maintainers/Divi)[@Divi](https://github.com/Divi)

---

Top Contributors

[![Divi](https://avatars.githubusercontent.com/u/1122160?v=4)](https://github.com/Divi "Divi (127 commits)")

---

Tags

apileague-of-legendsphpriot-gamesapileague of legendsLoLlol apirtmp

### Embed Badge

![Health badge](/badges/elogank-php-lol-api/health.svg)

```
[![Health](https://phpackages.com/badges/elogank-php-lol-api/health.svg)](https://phpackages.com/packages/elogank-php-lol-api)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M559](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.7k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
