PHPackages                             mrgswift/oauth2-server - 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. mrgswift/oauth2-server

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

mrgswift/oauth2-server
======================

An OAuth 2.0 bridge for Laravel and Lumen

5.3.5(2y ago)0461MITPHPPHP &gt;=8.2CI failing

Since Sep 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mrgswift/oauth2-server)[ Packagist](https://packagist.org/packages/mrgswift/oauth2-server)[ RSS](/packages/mrgswift-oauth2-server/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (12)Versions (14)Used By (0)

OAuth 2.0 Server for Laravel (deprecated for Laravel 5.3+)
==========================================================

[](#oauth-20-server-for-laravel-deprecated-for-laravel-53)

[![oauth2-server-laravel](https://cloud.githubusercontent.com/assets/499192/9065550/751404ba-3ad2-11e5-9f92-3d4d5d4b9c54.png)](https://cloud.githubusercontent.com/assets/499192/9065550/751404ba-3ad2-11e5-9f92-3d4d5d4b9c54.png)

> **Note:** This package is no longer maintaned for Laravel 5.3+ since Laravel now features the [Passport package](https://laravel.com/docs/passport).

[OAuth 2.0](http://tools.ietf.org/wg/oauth/draft-ietf-oauth-v2/) authorization server and resource server for the Laravel and Lumen frameworks. Standard compliant thanks to the amazing work by [The League of Extraordinary Packages](http://www.thephpleague.com) OAuth 2.0 authorization server and resource server.

[![Latest Version](https://camo.githubusercontent.com/c31240b7783fb5fa4e7b96d69fa5dd77737268c0d9117207db080605b536da5a/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c7563616465676173706572692f6f61757468322d7365727665722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/lucadegasperi/oauth2-server-laravel/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0340077590a65e10b8d52f000465c54853268a555cc93f49d8bd3fcd2994503a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c7563616465676173706572692f6f61757468322d7365727665722d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lucadegasperi/oauth2-server-laravel)[![Coverage Status](https://camo.githubusercontent.com/d15a3767983b28dd47b7edf7fc3ecbc1aa8863266a1bc85e07267ebefac9d14c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c7563616465676173706572692f6f61757468322d7365727665722d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lucadegasperi/oauth2-server-laravel/code-structure)[![Quality Score](https://camo.githubusercontent.com/a874a7b84c198b4e22cfda074c4118a0d3b55d191a112183dd4c5af01b9fe52a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c7563616465676173706572692f6f61757468322d7365727665722d6c61726176656c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/lucadegasperi/oauth2-server-laravel)[![Total Downloads](https://camo.githubusercontent.com/7899013f287b33cd22e769f873797dd87d9ccf0fb078a6cef41cbfa2a32c5039/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c7563616465676173706572692f6f61757468322d7365727665722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lucadegasperi/oauth2-server-laravel)

> **Note:** This package assumes you have a good-enough knowledge of the principles behind the [OAuth 2.0 authorization specification](http://tools.ietf.org/html/rfc6749).

Documentation
-------------

[](#documentation)

This package features an [extensive documentation](docs#readme) to help you getting started implementing an OAuth 2.0 server in your Laravel application.

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

[](#contributing)

Bugs and feature request are tracked on [GitHub](https://github.com/lucadegasperi/oauth2-server-laravel/issues). Please read our [contribution guidelines](CONTRIBUTING.md) before opening a new issue or submitting a new pull request.

Credits
-------

[](#credits)

The code on which this package is [based](https://github.com/thephpleague/oauth2-server), is principally developed and maintained by [Alex Bilbie](https://twitter.com/alexbilbie).

License
-------

[](#license)

The Laravel OAuth 2.0 package is released under [the MIT License](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~156 days

Recently: every ~261 days

Total

13

Last Release

911d ago

PHP version history (4 changes)5.2.2PHP &gt;=5.5.9

5.2.5PHP &gt;=7.2.0

5.2.8PHP &gt;=7.3.0

5.3.3PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2319364?v=4)[Matthew Guillot](/maintainers/mrgswift)[@mrgswift](https://github.com/mrgswift)

---

Top Contributors

[![mrgswift](https://avatars.githubusercontent.com/u/2319364?v=4)](https://github.com/mrgswift "mrgswift (22 commits)")

---

Tags

apilaravellumenserveroauthoauth2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrgswift-oauth2-server/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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