jwilsson / oauth2-client
A modern OAuth2 Client Library.
4.0.0
2023-12-02 12:29 UTC
Requires
- php: ^8.2
- php-http/client-common: ^2.1
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.7
- php-http/guzzle7-adapter: ^1.0
- php-http/httplug: ^2.1
- php-http/message: ^1.8
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.4
- nyholm/psr7: ^1.3
- pestphp/pest: ^2.0
- php-coveralls/php-coveralls: ^2.0
- php-http/mock-client: ^1.3
- phpstan/phpstan: ^1.3
README
Features
- Fully supports modern OAuth2 grant types:
- Authorization Code
- Client Credentials
- Proof Key for Code Exchange (PKCE)
- Refresh Token
- Full utilization of PSR-7, PSR-17, and PSR-18.
- Compatible with PSR-4 autoloading.
Requirements
- PHP 8.2 or later.
- A PSR-18 HTTP client.
- A PSR-7 implementation.
Installation
Via Composer:
composer require jwilsson/oauth2-client
Usage
See the docs
folder for complete usage information.
Related
- AutoRefreshOAuth2TokenPlugin - A HTTPlug plugin to automatically refresh expired OAuth2 access tokens.