Skip to content

Using Dingo + JWT in your Lumen Based Application with no pain.

License

Notifications You must be signed in to change notification settings

crashtest-security/lumen-dingo-adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dingo Adapter for Lumen 5.8

Using Dingo + JWT in your Lumen Based Application with no pain.

All dependencies have been updated to work with Lumen 5.8

Tag Lumen Version
5.8 5.8.*
5.7 5.7.*
1.1 5.4.*

Installation

composer require crashtest-security/lumen-dingo-adapter

Configuration

In your bootstrap/app.php file add this line:

$app->register(Zeek\LumenDingoAdapter\Providers\LumenDingoAdapterServiceProvider::class);

Configure one of the following environment variables to make this package work out of the box:

API_PREFIX=api
API_DOMAIN=api.example.com

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.

About

Using Dingo + JWT in your Lumen Based Application with no pain.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%