OAuth 2.0 Server
PHP library that implements an OAuth 2.0 authorization server, issuing and checking access tokens for an API.
oauth2.thephpleague.com/repositorydocs
oauth2-server is a PHP library that implements an OAuth 2.0 authorization server. It lets an application issue access tokens to clients, lets an API check them, and supports the authorization code, client credentials, device authorization, implicit, refresh and resource owner password credentials grants. The README names RFCs 6749, 6750, 7519, 7636 and 8628 as the specifications it implements.
The package is installed with Composer and needs the openssl and json PHP extensions. Alex Bilbie created the library. The README credits Andy Millington as its principal developer and maintainer.
Community integrations named in the README include Drupal’s simple_oauth module, Laravel Passport and a Symfony bundle. They sit beside the library in the README, which does not describe them as built on it.
Identity
Rendering and deploy
- Install with
- composer3
Releases
Adoption
Sources
- 2026-11-16: links
oauth2.thephpleague.com/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/thephpleague/oauth2-server - 2026-11-16: links, Categories, Install with, License model
github.com/thephpleague/oauth2-server/blob/master/README.md - 2026-11-16: Runtime, Minimum runtime
github.com/thephpleague/oauth2-server/blob/9.4.1/composer.json - 2026-11-16: Maintainer
github.com/thephpleague/oauth2-server/blob/master/LICENSE - 2026-11-16: First release
api.github.com/repos/thephpleague/oauth2-server/commits/0.1 - 2026-11-16: Current major version, Last release
api.github.com/repos/thephpleague/oauth2-server/releases - 2026-11-16: Contributors
api.github.com/repos/thephpleague/oauth2-server/contributors?per_page=1 - 2026-11-16: Packagist downloads
packagist.org/packages/league/oauth2-server.json - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Foauth2-server