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

On this page you can find all versions of the php package elogank/lol-replay-downloader-cli. 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-cli

League of Legends Replay Downloader CLI

This project provides you a simple command to easily download a League of Legends replay game which still in process (ingame), like lolking 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. It uses the library : https://github.com/EloGank/lol-replay-downloader

Features

Installation

You have two ways to install the repository. First, with a Virtual Machine, optional but recommended on Windows OS, and the second way, manually (but less than 2 minutes, I swear).

Virtual Machine

If you want to install/try this project with a Virtual Machine and avoid the installation process if you haven't yet a PHP environment, read the virtual machine documentation. It will take you only one minute.

If you want to install/try this project on a Windows system, I advice you to choose the Virtual Machine installation process. This project hasn't been tested on a Windows system.

Manually

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

Configuration

See all the available configurations here.

How to use

This project provides you an unique command : php console elogank:replay:download

Example of output :

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

To get the region, is pretty easy : just look at the file config/config.yml, all region servers are listed. For example, if you play on the EUW server, just use the region EUW1.

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 run the command :

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.

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-cli with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
incenteev/composer-parameter-handler Version ~2.1.0
symfony/yaml Version ~2.5.7
symfony/console Version ~2.5.5
elogank/lol-replay-downloader Version 1.0.*@dev
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-cli contains the following files

Loading the files please wait ....