OAuth 2.0 Client
PHP library that provides a base for connecting an application to OAuth 2.0 service providers.
oauth2-client.thephpleague.com/repositorydocsplugins
oauth2-client is a PHP library that gives an application a base for connecting to OAuth 2.0 service providers. Its GenericProvider class works with any provider that issues Bearer tokens. Provider-specific clients for services such as Facebook, GitHub, Google, Instagram and LinkedIn are separate packages, and the project lists official and third-party ones on its site.
The package is installed with Composer. The homepage says the base package is required directly only to use the GenericProvider; a provider client is required on its own.
Identity
Rendering and deploy
- Install with
- composer1
Releases
Adoption
Sources
- 2026-11-16: links, Install with
oauth2-client.thephpleague.com/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/thephpleague/oauth2-client - 2026-11-16: links, Categories
github.com/thephpleague/oauth2-client/blob/master/README.md - 2026-11-16: Runtime, Minimum runtime
github.com/thephpleague/oauth2-client/blob/2.9.1/composer.json - 2026-11-16: Maintainer, License model
github.com/thephpleague/oauth2-client/blob/master/LICENSE - 2026-11-16: First release
api.github.com/repos/thephpleague/oauth2-client/commits/0.1.0 - 2026-11-16: Current major version, Last release
api.github.com/repos/thephpleague/oauth2-client/releases - 2026-11-16: Contributors
api.github.com/repos/thephpleague/oauth2-client/contributors?per_page=1 - 2026-11-16: Packagist downloads
packagist.org/packages/league/oauth2-client.json - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/league%2Foauth2-client