New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rapiro/oauth2server-lumen

PHP OAuth 2.0 Server for Lumen
32

Larablocks Analysis

rapiro/oauth2server-lumen works with any PHP project: the latest release (0.1.7, Jun 19, 2015) doesn't depend on Laravel.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Jun 19, 2015)
  • 1 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jun 19, 2015.
  • No releases in the last 12 months.
  • First released: Jun 4, 2015.
  • Monthly downloads: 1.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require rapiro/oauth2server-lumen
Latest Version:0.1.7
PHP:>=5.5.0
License:MIT
Last Updated:Jun 19, 2015
Links: GitHub  ·  Packagist
Maintainer: amaroRafael

PHP OAuth 2.0 Server for Lumen

OAuth 2.0 authorization server and resource server for the Laravel framework. Standard compliant thanks to the amazing work by The League of Extraordinary Packages OAuth 2.0 authorization server and resource server.

The package assumes you have a good-enough knowledge of the principles behind the OAuth 2.0 Specification.

Version Compability

Lumen OAuth Server PHP
5.0.x 4.1.x >= 5.5

Documentation

This package features an extensive wiki to help you getting started implementing an OAuth 2.0 Server in your Laravel app.

Support

Bugs and feature request are tracked on GitHub

License

This package is released under the MIT License.

Credits

#The code on which this package are based:

OAuth2Server-Lumen

PHP OAuth 2.0 Server for Lumen

Installation

Via composer

Run composer require 'rapiro/oauth2server-lumen:0.1.*'

Register package

In your bootstrap/app.php register service providers

$app->register('Rapiro\OAuth2Server\Providers\StorageServiceProvider');
$app->register('Rapiro\OAuth2Server\Providers\OAuth2ServerServiceProvider');

... and middleware

$app->middleware([
    'Rapiro\OAuth2Server\Middleware\OAuthExceptionHandlerMiddleware'
]);

... and route middleware

$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'
]);

Copy config

Copy vendor/Rapiro/oauth2server-lumen/config/oauth2.php to your own config folder (config/oauth2.php in your project root). Copy vendor/Rapiro/oauth2server-lumen/config/auth.php to your own config folder (config/oauth2.php in your project root).

It has to be the correct config folder as it is registered using $app->configure().

Copy models

Copy vendor/Rapiro/oauth2server-lumen/Models/ folder to your own app folder (app/ in your project root).

Migrate

In bootstrap/app.php file and uncomment $app->withFacades(); and $app->withEloquent();

Run php artisan migrate --path=vendor/Rapiro/oauth2server-lumen/database/migrations

Related Packages

h4r5h4/oauth2-server-laravel

An OAuth 2.0 bridge for Laravel and Lumen

53 3
mrgswift/oauth2-server

An OAuth 2.0 bridge for Laravel and Lumen

46 0
hbauthali/oauth2-slave-laravel

An OAuth 2.0 bridge for Laravel and Lumen

15 0
elumina-elearning/oauth2-server-laravel

An OAuth 2.0 bridge for Laravel and Lumen

12 0
aokoruyucu/oauth2-server-laravel

An OAuth 2.0 bridge for Laravel and Lumen

9 0

Version History

Version Released PHP License
0.1.7 >=5.5.0 MIT
0.1.6 >=5.5.0 MIT
0.1.5 >=5.5.0 MIT
0.1.4 >=5.5.0 MIT
0.1.3 >=5.5.0 MIT