PHP code example of rapiro / oauth2server-lumen

1. Go to this page and download the library: Download rapiro/oauth2server-lumen library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rapiro / oauth2server-lumen example snippets

 artisan migrate --path=vendor/Rapiro/oauth2server-lumen/database/migrations
bootstrap/app.php

$app->routeMiddleware([
    'check-authorization-params' => 'Rapiro\OAuth2Server\Middleware\CheckAuthCodeRequestMiddleware',
    'csrf' => 'Laravel\Lumen\Http\Middleware\VerifyCsrfToken',
    'oauth' => 'Rapiro\OAuth2Server\Middleware\OAuthMiddleware',
    'oauth-owner' => 'Rapiro\OAuth2Server\Middleware\OAuthOwnerMiddleware'
]);
vendor/Rapiro/oauth2server-lumen/config/oauth2.php
config/oauth2.php
vendor/Rapiro/oauth2server-lumen/config/auth.php
config/oauth2.php
bootstrap/app.php