<commit_before># Laravel Auth0 Plugin
This plugin helps you integrate your Laravel WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps. You can see an example application [on the example directory](https://github.com/auth0/laravel-auth0/tree/master/examples/laravel-api).

##Laravel Compatibility

The last version (2.x) targets Laravel 5 compatibility.

If you are working with an older version (Laravel 4.x) you need to point to composer.json to the version 1.0.*

##BC breaks on auth0-php 1.0.0

The latest version of auth0-php has BC breaks.

Besides, laravel-auth0 has full BC, we recommend to check the changes in case you were using it directly. Read the [auth0-php README](https://github.com/auth0/Auth0-PHP).

### 1. Install the plugin and its dependencies

To install this plugin add the following dependency to your composer.json

```js
"auth0/login" : "~2.1"
```

and run `composer update`

NOTE: Some plugin dependencies are not tagged, so you have to either change the `minimum-stability` to `dev` or you have to add the dependencies manually.

```js
"adoy/oauth2": "dev-master",
"illuminate/contracts": "5.*"
```

### 2. Enable it in Laravel
Add the following in the list of the services providers, located in `app/config/app.php`

```php
'providers' => array(
    // ...
    'Auth0\Login\LoginServiceProvider',
);
```

Optionally, if you want to use the [facade](http://laravel.com/docs/facades) called `Auth0` you should also add an alias in the same file

```php
'aliases' => array(<commit_msg>Removed note about unstable dependency from README<commit_after># Laravel Auth0 Plugin
This plugin helps you integrate your Laravel WebApp with [Auth0](https://auth0.com/) to achieve Single Sign On with a few simple steps. You can see an example application [on the example directory](https://github.com/auth0/laravel-auth0/tree/master/examples/laravel-api).

##Laravel Compatibility

The last version (2.x) targets Laravel 5 compatibility.

If you are working with an older version (Laravel 4.x) you need to point to composer.json to the version 1.0.*

##BC breaks on auth0-php 1.0.0

The latest version of auth0-php has BC breaks.

Besides, laravel-auth0 has full BC, we recommend to check the changes in case you were using it directly. Read the [auth0-php README](https://github.com/auth0/Auth0-PHP).

### 1. Install the plugin and its dependencies

To install this plugin add the following dependency to your composer.json

```js
"auth0/login" : "~2.1"
```

and run `composer update`

### 2. Enable it in Laravel
Add the following in the list of the services providers, located in `app/config/app.php`

```php
'providers' => array(
    // ...
    'Auth0\Login\LoginServiceProvider',
);
```

Optionally, if you want to use the [facade](http://laravel.com/docs/facades) called `Auth0` you should also add an alias in the same file

```php
'aliases' => array(
{'fraction_non_alphanumeric': 0.10855376159395397, 'fraction_numerical': 0.018550326348333906, 'mean_word_length': 4.181494661921708, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507658', 'n_tokens_mistral': 912, 'n_tokens_neox': 867, 'n_words': 373}