elogank / php-lol-api
PHP League of Legends API
Requires
- php: >=5.4.0
- incenteev/composer-parameter-handler: v2.1.0
- monolog/monolog: 1.8.0
- predis/predis: 0.8.*@dev
- react/socket: 0.4.*@dev
- sabre/amf: dev-master
- symfony/console: 2.5.*@dev
- symfony/event-dispatcher: 2.5.*@dev
- symfony/monolog-bridge: 2.5.*@dev
- symfony/yaml: v2.4.2
Requires (Dev)
- moriony/php-zmq-stubs: dev-master
Suggests
- ext-zmq: Allow to communicate between all asynchronous clients
This package is not auto-updated.
Last update: 2024-12-21 17:22:26 UTC
README
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 : https://github.com/EloGank/lol-php-api-client
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 & mutli process)
- Multi region (EUW, NA, EUNE, BR, TR, RU, KR, LAN, LAS, OCE & 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
How to install this API
Additional installation instructions for the production environment
Configuration
How to use
Route list
Documentation
The document is stored in the doc
folder of this repository.
Here, the main titles :
- Installation
- Installation (production environment)
- Configuration
- How to use
- Routing
- Caching
- Contribute
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
Known issues
- Fix issue on SIGINT signal (CTRL + C) (ReactPHP issue : reactphp/reactphp#296)
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.
When reporting an issue, please include your asynchronous configuration (enabled or not).
Credit
See the list of contributors.
The RTMP client class is a PHP partial rewrite of the awesome Gabriel Van Eyck's work.
Licence
Creative Commons Attribution-ShareAlike 3.0
League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends (c) Riot Games, Inc.