This package provides an integration for your laravel application with Gluu server.
To install this package you should add these lines into your composer.json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/kwri/LaravelGluuWrapper"
}
],
"require": {
"kwri/laravel-gluu-wrapper": "dev-master"
},
"prefer-stable": true,
"minimum-stability": "dev"
}
Since this package is in its early state, you have to include
prefer-stable
and setminimum-stability
totrue
.
After that, run composer update
from your terminal.
To use this package, add KWRI\LaravelGluuWrapper\ServiceProvider::class
into your service provider configuration inside config/app.php
If you want to use facade, add 'GluuWrapper' => KWRI\LaravelGluuWrapper\Facades\GluuWrapper::class,
into aliases
inside your config/app.php
- Run
php artisan vendor:publish
- Migrate the
access_tokens
table usingphp artisan migrate
- Modify
config/gluu-wrapper.php
with your environment configuration
The middleware in this library depends on tymon/jwt-auth
. Make sure your application use this library too.
To use the middleware, add 'gluu' => \KWRI\LaravelGluuWrapper\Middleware\GluuToken::class,
in your app\Http\Kernel.php
file, and use gluu
middleware.