phpLoL is a library to access League of Legends statistics via php
###Standalone use:
git clone https://github.com/zlokomatic/phpLoL.git
- composer install
###As dependency (dont do this if you did the standalone step):
-
create a composer.json and define this dependencies.
{ "repositories": [ { "type": "git", "url": "https://github.com/zlokomatic/phpLoL.git" }, { "type": "git", "url": "https://github.com/zlokomatic/SabreAMF.git" } ], "require": { "zlokomatic/phpLoL": "*" }, "minimum-stability": "dev" }
-
composer install
change
private $clientVersion = ""
to current client Version (e.g. 3.11.13_09_13_11_54)
Avaiable functions are:
- getSummonerByName($name)
- getAllPublicSummonerDataByAccount($accountid)
- getSummonerNames(array $accountIds)
- getRecentGames($accountId)
- getPlayerStatsByAccountId($accountId)
- getAggregatedStats($accountId, $gameMode, $season)
- Available gameModes
- CLASSIC
- ODIN
- ARAM
- TUTORIAL
- Available timelines
- 1
- 2
- 3
- Available gameModes
- getAllLeaguesForPlayer($summonerId)
- Made project composer compliant
- Small example to show how a way how to stay connected: https://github.com/zlokomatic/phpLoL-tcp
- lolrtmpsclient
- SabreAMF