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(3mo ago)2344.7M↓14.1%99[46 issues](https://github.com/thephpleague/oauth2-server-bundle/issues)[10 PRs](https://github.com/thephpleague/oauth2-server-bundle/pulls)6MITPHPPHP ^8.1CI passing

Since Sep 26Pushed 1mo ago17 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 1mo 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

66

—

FairBetter than 99% of packages

Maintenance81

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community41

Growing community involvement

Maturity68

Established project with proven stability

 Bus Factor4

4 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

101d 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 (157 commits)")[![ajgarlag](https://avatars.githubusercontent.com/u/388184?v=4)](https://github.com/ajgarlag "ajgarlag (64 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 (12 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)")[![kdckrs](https://avatars.githubusercontent.com/u/2227271?v=4)](https://github.com/kdckrs "kdckrs (2 commits)")[![Orkin](https://avatars.githubusercontent.com/u/1061903?v=4)](https://github.com/Orkin "Orkin (2 commits)")[![gschafra](https://avatars.githubusercontent.com/u/3999582?v=4)](https://github.com/gschafra "gschafra (2 commits)")[![VincentLanglet](https://avatars.githubusercontent.com/u/9052536?v=4)](https://github.com/VincentLanglet "VincentLanglet (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/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.6k136.0M248](/packages/league-oauth2-server)[prestashop/prestashop

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

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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