Download the PHP package elogank/lol-replay-downloader without Composer

On this page you can find all versions of the php package elogank/lol-replay-downloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lol-replay-downloader

League of Legends Replay Downloader

This project provides you a way to easily download a League of Legends replay game which still in process (ingame), like lolking.net or op.gg feature. Replays are stored in your server and can be watched at any time.
All download files can be decoded to parse them.

Features

Installation

Composer

Simply clone this project and run the composer install command. If you don't know what is Composer, read the dedicated documentation.

Configuration

To configure the library, you have some $options parameters in the classes constructor. Just pass an array to override them, see the getDefaultOptions() method of each class.

See the "download and decode example", which overrides two configurations of the ReplayDownloader class.

Notes with xDebug

If you have enabled xDebug, please set your max nesting level to more than 200. This lib uses a recursive method to download a game data, and can reach the max value (100) when a game length is more than 40 minutes.
To edit the default max nesting level, open your xDebug configuration file (/etc/php5/your_engine(cli, fpm or apache2)/conf.d/20-xdebug.ini by default) and append this :

How to use (examples)

Some examples are available in the examples repository folder.

How to get the region, game id or encryption key ?

Some regions (not all) are listed in the LoLNexusParser class as constants.

From an unofficial API

For the game id and the encryption key, it's a few harder. Indeed, the official Riot API doesn't provide yet an API to retrieve this data.
To get it, you have to use an unofficial API, like this : https://github.com/EloGank/lol-php-api, please see the route game.retrieve_in_progress_spectator_game_info. Note that using other route is not allowed, by the new Riot Terms of Use (see "Important notes" below).

From LoLNexus website

For testing purpose, you can simply go to spectating websites like lolnexus, click on "Spectate" button on a game, and you'll have the region, game id & encryption key in the command line to launch the game, see the end of the line :

Example :

So, you can extract :

Region Game ID Encryption Key
EUW1 1234567890 nwP+BEYqHgk4sElnU2uRogoxGPUw1dzE

From LoLNexus parser

A LoLNexus PHP parser exists here : https://github.com/EloGank/lol-replay-downloader/blob/master/examples/utils/LoLNexusParser.php

Usage is simple : you juste have to select the region by calling LoLNexusParser::parseRandom($regionId) or LoLNexusParser::parsePlayer($regionId, $playerName) methods and it will bring you all parameters for running a command by calling LoLNexusParser::getRegion(), LoLNexusParser::getGameId() or LoLNexusParser::getEncryptionKey() methods.

Example is available here : https://github.com/EloGank/lol-replay-downloader/blob/master/examples/download-replay.php#L32-L48

Important notes

According to the new Riot Terms of Use (1st October 2014), using data from another source of their official API is not allowed. So using data by parsing decoded files is not allowed. This project provides a way to decode file only for teaching purpose.

You can download a full game only if you start the download process before the ~8th ingame minute. Otherwise, you won't have the start of the game.

A game is still viewable if the game hasn't been updated. If one or more updates has been applied since the replay has been downloaded, there may be has some ingame glitches (movements, monsters, sounds, etc).

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.

Credit

See the list of contributors.

Licence

MIT, more information

This repository isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends.
League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends (c) Riot Games, Inc.


All versions of lol-replay-downloader with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
kriswallsmith/buzz Version ~0.13
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package elogank/lol-replay-downloader contains the following files

Loading the files please wait ....