PHPackages                             nordsoftware/lumen-oauth2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nordsoftware/lumen-oauth2

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

nordsoftware/lumen-oauth2
=========================

OAuth2 module for the Lumen PHP framework.

3.1.1(8y ago)272.9k4[2 issues](https://github.com/digiaonline/lumen-oauth2/issues)4MITPHPPHP &gt;=5.6

Since Jun 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/digiaonline/lumen-oauth2)[ Packagist](https://packagist.org/packages/nordsoftware/lumen-oauth2)[ RSS](/packages/nordsoftware-lumen-oauth2/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (8)Versions (19)Used By (4)

Lumen OAuth2
============

[](#lumen-oauth2)

[![Build Status](https://camo.githubusercontent.com/e2712d0ae80a8074800ebd150c50528ac5f2eaeb166298e03f59e3b16f2e60db/68747470733a2f2f7472617669732d63692e6f72672f6e6f7264736f6674776172652f6c756d656e2d6f61757468322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nordsoftware/lumen-oauth2)[![Coverage Status](https://camo.githubusercontent.com/acbae8b4d3485b166cf0ffa187ae83e3eaa78bd6a0f973a5deaee115762c40ff/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e6f7264736f6674776172652f6c756d656e2d6f61757468322f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nordsoftware/lumen-oauth2?branch=master)[![Code Climate](https://camo.githubusercontent.com/80580c3fc09479e482dd6ea9e87562f79045d1efa00de034bdc4db574f87734a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e6f7264736f6674776172652f6c756d656e2d6f61757468322f6261646765732f6770612e737667)](https://codeclimate.com/github/nordsoftware/lumen-oauth2)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ab34bb2e2bce1d913fb85f270c419fc511e906f871aef5541c81ab3d911fd40a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f7264736f6674776172652f6c756d656e2d6f61757468322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nordsoftware/lumen-oauth2/?branch=master)[![StyleCI](https://camo.githubusercontent.com/af12563a9c02664f26dbae114de5325326e86e90c6d1aae0161d4e861e0a0487/68747470733a2f2f7374796c6563692e696f2f7265706f732f33353537313332322f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/35571322)[![Latest Stable Version](https://camo.githubusercontent.com/970d89699807f4430dd96995f9b98b4cdb619624b3c0f28dfefad289ae370b6f/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7264736f6674776172652f6c756d656e2d6f61757468322f76657273696f6e)](https://packagist.org/packages/nordsoftware/lumen-oauth2)[![Total Downloads](https://camo.githubusercontent.com/5a842433bf1651cf8b91597fc0d93a898b47a9baa781335e25c56f8ad36c9ae3/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7264736f6674776172652f6c756d656e2d6f61757468322f646f776e6c6f616473)](https://packagist.org/packages/nordsoftware/lumen-oauth2)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

OAuth2 module for the [Lumen PHP framework](http://lumen.laravel.com/).

Requirements
------------

[](#requirements)

- PHP 5.6 or newer
- [Composer](http://getcomposer.org)
- [Lumen](https://lumen.laravel.com/) 5.3 or newer

Usage
-----

[](#usage)

### Installation

[](#installation)

Run the following command to install the package through Composer:

```
composer require nordsoftware/lumen-oauth2
```

Install a storage connector by running one of the following commands:

```
composer require nordsoftware/lumen-oauth2-doctrine
```

or

```
composer require nordsoftware/lumen-oauth2-eloquent
```

or you can build your own.

### Configure

[](#configure)

Copy the configuration template in `config/oauth2.php` to your application's `config` directory and modify according to your needs. For more information see the [Configuration Files](http://lumen.laravel.com/docs/configuration#configuration-files) section in the Lumen documentation.

### Bootstrapping

[](#bootstrapping)

Add the following lines to `bootstrap/app.php`:

```
$app->configure('oauth2');
```

Depending on the storage connector in use, register the correct service provider, e.g.

```
$app->register(Nord\Lumen\OAuth2\Doctrine\DoctrineServiceProvider::class);
```

Then the OAuth2 module service provider.

```
$app->register(Nord\Lumen\OAuth2\OAuth2ServiceProvider::class);
```

And to use the middleware for authenticating users.

```
$app->routeMiddleware([
	.....
	Nord\Lumen\OAuth2\Middleware\OAuth2Middleware::class,
]);
```

Contributing
------------

[](#contributing)

Please read the [guidelines](.github/CONTRIBUTING.md).

License
-------

[](#license)

See [LICENSE](LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Recently: every ~110 days

Total

16

Last Release

3270d ago

Major Versions

1.4.0 → 2.0.02016-11-19

2.0.0 → 3.0.02017-02-10

PHP version history (3 changes)1.0.0PHP &gt;=5.5

1.3.1PHP &gt;=5.5.9

2.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab3becb3323ceb956c661f3e6ef4312dcd00ec4ba03d1bba5fcef793f5c4286d?d=identicon)[crisu83](/maintainers/crisu83)

![](https://www.gravatar.com/avatar/2f766f3d06300e4e58806cac328ec6774408e2782497f3624f6112e0838bd057?d=identicon)[soderluk](/maintainers/soderluk)

![](https://www.gravatar.com/avatar/0946a262e18034427b1a75b8f2b9edc25395f33e5f514c616de79c69312e2b92?d=identicon)[kryysler](/maintainers/kryysler)

![](https://www.gravatar.com/avatar/71b6ac8e861b06d0c801083af34bbdc5082de87488d08e965762a8a771c23997?d=identicon)[woss](/maintainers/woss)

![](https://www.gravatar.com/avatar/d7e28ec3bf2ff3ffcdd8c947f54d53d4dae86939bea2a7316cfde0b10410e9ee?d=identicon)[Jalle19](/maintainers/Jalle19)

![](https://www.gravatar.com/avatar/f06fae53c658280a1146e3f9af93e7b811021f81d11f3c1a7b6d5db1d7339c33?d=identicon)[hugovk](/maintainers/hugovk)

![](https://www.gravatar.com/avatar/6e20e7bc5947632a9aa1e5a718a8518136f7341edff04e4d6110fc2f9da70ce0?d=identicon)[laxu](/maintainers/laxu)

---

Top Contributors

[![cniska](https://avatars.githubusercontent.com/u/1044868?v=4)](https://github.com/cniska "cniska (22 commits)")[![hugovk](https://avatars.githubusercontent.com/u/1324225?v=4)](https://github.com/hugovk "hugovk (18 commits)")[![soderluk](https://avatars.githubusercontent.com/u/6086071?v=4)](https://github.com/soderluk "soderluk (5 commits)")[![kryysler](https://avatars.githubusercontent.com/u/3352265?v=4)](https://github.com/kryysler "kryysler (3 commits)")[![Jalle19](https://avatars.githubusercontent.com/u/1106133?v=4)](https://github.com/Jalle19 "Jalle19 (1 commits)")[![villeristi](https://avatars.githubusercontent.com/u/2413192?v=4)](https://github.com/villeristi "villeristi (1 commits)")

---

Tags

lumenlumen-oauth2lumen-php-frameworkoauthoauth2phplaravellumenoauth2

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/nordsoftware-lumen-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/nordsoftware-lumen-oauth2/health.svg)](https://phpackages.com/packages/nordsoftware-lumen-oauth2)
```

###  Alternatives

[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)[ronvanderheijden/openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

61755.5k](/packages/ronvanderheijden-openid-connect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
