PHPackages                             josephting/lolapi-4-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. josephting/lolapi-4-laravel

Abandoned → [league-php/leaguewrap](/?search=league-php%2Fleaguewrap)Library[API Development](/categories/api)

josephting/lolapi-4-laravel
===========================

League of Legends API Service Provider for Laravel 4

1.0.0(11y ago)03101MITPHPPHP &gt;=5.4.0

Since Sep 22Pushed 7y ago2 watchersCompare

[ Source](https://github.com/josephting/lolapi-4-laravel)[ Packagist](https://packagist.org/packages/josephting/lolapi-4-laravel)[ Docs](https://github.com/josephting/lolapi-4-laravel)[ RSS](/packages/josephting-lolapi-4-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

League of Legends wrapper for Laravel 4
=======================================

[](#league-of-legends-wrapper-for-laravel-4)

\[DEPRECATED\] This repo is no longer maintained. Migrate to [LeaguePHP/LeagueWrap](https://github.com/LeaguePHP/LeagueWrap).
=============================================================================================================================

[](#deprecated-this-repo-is-no-longer-maintained-migrate-to-leaguephpleaguewrap)

lolapi-4-laravel is a simple laravel 4 service provider (wrapper) for [paquettg/leaguewrap](https://github.com/paquettg/leaguewrap)which aims to assist application development that depends on the League of Legends API easily.

---

- [Installation](#installation)
- [Registering the Package](#registering-the-package)
- [Configuration](#configuration)
- [Usage](#usage)
- [Basic usage](#basic-usage)
- [Usage examples](#usage-examples)

Installation
------------

[](#installation)

Add lolapi-4-laravel to your composer.json file:

```
"require": {
  "josephting/lolapi-4-laravel": "dev-master"
}

```

Use composer to install this package.

```
$ composer update

```

### Registering the Package

[](#registering-the-package)

Register the service provider within the `providers` array found in `app/config/app.php`:

```
'providers' => array(
	// ...

	'Josephting\LolApi\LolApiServiceProvider',
)
```

Add an alias within the `aliases` array found in `app/config/app.php`:

```
'aliases' => array(
	// ...

	'LolApi'          => 'Josephting\LolApi\Facade\LolApi',
)
```

Configuration
-------------

[](#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

[](#option-1)

Create configuration file for package using artisan command

```
$ php artisan config:publish josephting/lolapi-4-laravel

```

#### Option 2

[](#option-2)

Create configuration file manually in config directory `app/config/lolapi-4-laravel.php` and put there code from below.

```
