Download the PHP package json-nan/laravel-riot-lol-api without Composer
On this page you can find all versions of the php package json-nan/laravel-riot-lol-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download json-nan/laravel-riot-lol-api
More information about json-nan/laravel-riot-lol-api
Files in json-nan/laravel-riot-lol-api
Package laravel-riot-lol-api
Short Description Package to facilitate the connection with the Riot Games API in LOL
License MIT
Homepage https://github.com/json-nan/laravel-riot-lol-api
Informations about the package laravel-riot-lol-api
Package to facilitate the connection with the Riot Games API in LOL
This package is a wrapper for the Riot Games API in League of Legends, it is designed to facilitate the connection with the API and to be able to use the data in a more friendly way.
Requirements
- PHP 8.2 or higher
- Laravel 10 or higher
- Riot Games API Key from Riot Games Developer
Features
- Get Summoner info
- Get Player account info
Installation
You can install the package via composer:
You can publish the config file with:
Configuration
It requires the following environment variables:
You can configure this optional environment variable:
Usage
Testing
For testing the library in your local environment you need to follow the next steps:
- Go to tests/RiotLolApiTest.php
- Fill the configuration variables from line 12 to 16
- Remove ->skip() from the line 17
- Run ./vendor/bin/pest
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-riot-lol-api with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/contracts Version ^10.0
spatie/laravel-package-tools Version ^1.14.0