thephpleague/oauth2-server-bundle

Symfony bundle for the OAuth2 Server.

PHP

242

699 commits

updated Oct 14, 2026

See the code

README

OAuth2 Server Bundle

Unit tests status Coding standards status Type Coverage Latest Stable Version

OAuth2ServerBundle is a Symfony bundle integrating the oauth2-server library into Symfony applications.

Replacement of trikoder/oauth2-bundle made in coordination with trikoder and 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.

Versions

Active development happens on the 2.x branch, which represents the v2.0 major version and subsequent minor versions. Please submit new features there.

The 1.x branch is in maintenance mode i.e. it accepts only bugfixes. Please target it if you're submitting a bugfix that applies to 1.x.

When upgrading from 1.x to 2.x, follow the UPGRADE guide, which lists the BC breaking changes to be aware of when upgrading to v2.0 or higher.

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

The docs can be found in the docs/ directory of this repository.

License

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

thephpleague/oauth2-server-bundle

Symfony bundle for the OAuth2 Server.

PHP

242

699 commits

updated Oct 14, 2026

See the code

README

OAuth2 Server Bundle

Unit tests status Coding standards status Type Coverage Latest Stable Version

OAuth2ServerBundle is a Symfony bundle integrating the oauth2-server library into Symfony applications.

Replacement of trikoder/oauth2-bundle made in coordination with trikoder and 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.

Versions

Active development happens on the 2.x branch, which represents the v2.0 major version and subsequent minor versions. Please submit new features there.

The 1.x branch is in maintenance mode i.e. it accepts only bugfixes. Please target it if you're submitting a bugfix that applies to 1.x.

When upgrading from 1.x to 2.x, follow the UPGRADE guide, which lists the BC breaking changes to be aware of when upgrading to v2.0 or higher.

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

The docs can be found in the docs/ directory of this repository.

License

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

Significant stargazers

Jérôme Tamarelle

278 followers · starred Mar 2025

Martin Hasoň

169 followers · starred Jan 2022