krisanalfa / lumen-dingo-adapter
Using Dingo + JWT in your Lumen Based Application with no pain
Installs: 28 819
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 4
Forks: 8
Open Issues: 3
Requires
- php: >=5.5.9
- dingo/api: 1.0.x@dev
- illuminate/cookie: ^5.4
- illuminate/hashing: ^5.4
- illuminate/http: ^5.4
- illuminate/routing: ^5.4
- tymon/jwt-auth: 0.5.*
This package is auto-updated.
Last update: 2024-11-29 04:40:32 UTC
README
Using Dingo + JWT in your Lumen Based Application with no pain.
Installation
composer require krisanalfa/lumen-dingo-adapter
Configuration
In your bootstrap/app.php
file add this line:
$app->register(Zeek\LumenDingoAdapter\Providers\LumenDingoAdapterServiceProvider::class);
Below is environment variable you should configure to make this package works out of the box:
API_PREFIX=api
Guarding Your Routes via Dingo Routing
$app->make(Dingo\Api\Routing\Router::class)->version('v1', function ($api) { $api->group([ 'middleware' => 'api.auth', ], function ($api) { $api->get('/', 'App\Http\Controllers\DefaultController@index'); }); });
Quick Start
I have made a boilerplate here. Read the docs there to find out how to Quick Start this package.
LICENSE
Copyright 2017 Krisan Alfa Timur
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.