Package Data | |
---|---|
Maintainer Username: | krisanalfa |
Maintainer Contact: | krisan47@gmail.com (Krisan Alfa Timur) |
Package Create Date: | 2017-01-17 |
Package Last Update: | 2018-12-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:10:36 |
Package Statistics | |
---|---|
Total Downloads: | 28,815 |
Monthly Downloads: | 4 |
Daily Downloads: | 0 |
Total Stars: | 20 |
Total Watchers: | 4 |
Total Forks: | 8 |
Total Open Issues: | 3 |
Using Dingo + JWT in your Lumen Based Application with no pain.
composer require krisanalfa/lumen-dingo-adapter
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
$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');
});
});
I have made a boilerplate here. Read the docs there to find out how to Quick Start this package.
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.