Download the PHP package josephting/lolapi-4-laravel without Composer
On this page you can find all versions of the php package josephting/lolapi-4-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download josephting/lolapi-4-laravel
More information about josephting/lolapi-4-laravel
Files in josephting/lolapi-4-laravel
Package lolapi-4-laravel
Short Description League of Legends API Service Provider for Laravel 4
License MIT
Homepage https://github.com/josephting/lolapi-4-laravel
Informations about the package lolapi-4-laravel
League of Legends wrapper for Laravel 4
[DEPRECATED] This repo is no longer maintained. Migrate to LeaguePHP/LeagueWrap.
lolapi-4-laravel is a simple laravel 4 service provider (wrapper) for paquettg/leaguewrap which aims to assist application development that depends on the League of Legends API easily.
- Installation
- Registering the Package
- Configuration
- Usage
- Basic usage
- Usage examples
Installation
Add lolapi-4-laravel to your composer.json file:
Use composer to install this package.
Registering the Package
Register the service provider within the array found in :
Add an alias within the array found in :
Configuration
There are two ways to configure lolapi-4-laravel.
You can choose the most convenient way for you.
You can use package config file which can be
generated through command line by artisan (option 1) or
you can simply create a config file called lolapi-4-laravel.php
in
your app\config\
directory (option 2).
Option 1
Create configuration file for package using artisan command
Option 2
Create configuration file manually in config directory app/config/lolapi-4-laravel.php
and put there code from below.
Credentials
Add your credentials to app/config/packages/josephting/lolapi-4-laravel/config.php
or app/config/lolapi-4-laravel.php
(depending on which option of configuration you choose)
Usage
Basic usage
You can simply load up the API with:
It is possible to override the ApiKey in config by passing in a parameter:
Usage examples:
For more examples go here