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

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

league/oauth2-server-bundle
===========================

Symfony bundle .

v1.1.1(4mo ago)2375.3M↓44.8%101[42 issues](https://github.com/thephpleague/oauth2-server-bundle/issues)[2 PRs](https://github.com/thephpleague/oauth2-server-bundle/pulls)6MITPHPPHP ^8.1CI passing

Since Sep 26Pushed 2d ago16 watchersCompare

[ Source](https://github.com/thephpleague/oauth2-server-bundle)[ Packagist](https://packagist.org/packages/league/oauth2-server-bundle)[ Docs](https://github.com/thephpleague/oauth2-server-bundle)[ RSS](/packages/league-oauth2-server-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (16)Versions (18)Used By (6)

OAuth2 Server Bundle
====================

[](#oauth2-server-bundle)

[![Unit tests status](https://github.com/thephpleague/oauth2-server-bundle/workflows/unit%20tests/badge.svg)](https://github.com/thephpleague/oauth2-server-bundle/workflows/unit%20tests/badge.svg)[![Coding standards status](https://github.com/thephpleague/oauth2-server-bundle/workflows/coding%20standards/badge.svg)](https://github.com/thephpleague/oauth2-server-bundle/workflows/coding%20standards/badge.svg)[![Type Coverage](https://camo.githubusercontent.com/eec716f15384cc681a51ad947b120c0e231cdf581e11071afb0b0105dda7b85d/68747470733a2f2f73686570686572642e6465762f6769746875622f7468657068706c65616775652f6f61757468322d7365727665722d62756e646c652f636f7665726167652e737667)](https://shepherd.dev/github/thephpleague/oauth2-server-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/662e91caac84e904db5e8f39057b1dead03a6895d5c454d4711c35b44eada206/68747470733a2f2f706f7365722e707567782e6f72672f6c65616775652f6f61757468322d7365727665722d62756e646c652f762f737461626c65)](https://packagist.org/packages/league/oauth2-server-bundle)

OAuth2ServerBundle is a Symfony bundle integrating the [oauth2-server](https://github.com/thephpleague/oauth2-server) library into Symfony applications.

Replacement of trikoder/oauth2-bundle made in coordination with [trikoder](https://github.com/trikoder) and [Symfony](https://github.com/symfony/symfony) core team members in order to improve its maintenance, keep it in sync with Symfony developments and reduce the friction that vendor-overdiversification causes to end users.

Quick Start
-----------

[](#quick-start)

1. Require the bundle using Composer:

    ```
    composer require league/oauth2-server-bundle
    ```
2. Require Doctrine to use it as persistence layer:

    ```
    composer require doctrine/doctrine-bundle doctrine/orm
    ```

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

[](#documentation)

The docs [can be found in the `docs/` directory](docs/index.md) of this repository.

License
-------

[](#license)

See the [LICENSE](LICENSE) file for copyrights and limitations (MIT).

###  Health Score

67

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community41

Growing community involvement

Maturity68

Established project with proven stability

 Bus Factor3

3 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 ~99 days

Recently: every ~82 days

Total

17

Last Release

147d ago

Major Versions

v0.11 → v1.0.02025-04-27

PHP version history (2 changes)v0.1.0PHP &gt;=7.2

v0.6.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a3c2cd4b61f092c2b409f40014e0ac4bacc861550447db4376f60cbe24ae60b?d=identicon)[chalasr](/maintainers/chalasr)

![](https://www.gravatar.com/avatar/24ff986b9d3ca464465e5d890dcac7ec85b23d6b6739ab90918402d6dcce807e?d=identicon)[sephster](/maintainers/sephster)

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

---

Top Contributors

[![chalasr](https://avatars.githubusercontent.com/u/7502063?v=4)](https://github.com/chalasr "chalasr (166 commits)")[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (86 commits)")[![Allypost](https://avatars.githubusercontent.com/u/5151543?v=4)](https://github.com/Allypost "Allypost (64 commits)")[![HypeMC](https://avatars.githubusercontent.com/u/2445045?v=4)](https://github.com/HypeMC "HypeMC (59 commits)")[![spideyfusion](https://avatars.githubusercontent.com/u/704579?v=4)](https://github.com/spideyfusion "spideyfusion (46 commits)")[![elchris](https://avatars.githubusercontent.com/u/3396192?v=4)](https://github.com/elchris "elchris (43 commits)")[![X-Coder264](https://avatars.githubusercontent.com/u/12602463?v=4)](https://github.com/X-Coder264 "X-Coder264 (38 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (29 commits)")[![mtarld](https://avatars.githubusercontent.com/u/4955509?v=4)](https://github.com/mtarld "mtarld (20 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (13 commits)")[![TLG-Gildas](https://avatars.githubusercontent.com/u/129415070?v=4)](https://github.com/TLG-Gildas "TLG-Gildas (13 commits)")[![rjwebdev](https://avatars.githubusercontent.com/u/12196579?v=4)](https://github.com/rjwebdev "rjwebdev (11 commits)")[![azjezz](https://avatars.githubusercontent.com/u/29315886?v=4)](https://github.com/azjezz "azjezz (5 commits)")[![yoshz](https://avatars.githubusercontent.com/u/397425?v=4)](https://github.com/yoshz "yoshz (4 commits)")[![frankdekker](https://avatars.githubusercontent.com/u/2179983?v=4)](https://github.com/frankdekker "frankdekker (4 commits)")[![dkreuer](https://avatars.githubusercontent.com/u/461576?v=4)](https://github.com/dkreuer "dkreuer (3 commits)")[![mleczakm](https://avatars.githubusercontent.com/u/3474636?v=4)](https://github.com/mleczakm "mleczakm (3 commits)")[![RobertMe](https://avatars.githubusercontent.com/u/1102763?v=4)](https://github.com/RobertMe "RobertMe (2 commits)")[![Orkin](https://avatars.githubusercontent.com/u/1061903?v=4)](https://github.com/Orkin "Orkin (2 commits)")[![carlos-ea](https://avatars.githubusercontent.com/u/5512089?v=4)](https://github.com/carlos-ea "carlos-ea (2 commits)")

---

Tags

bundleauthserveroauth2authorization

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)

PHPackages © 2026

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