mirror of
https://github.com/jwilsson/php-oauth2-client.git
synced 2026-04-26 23:05:54 +03:00
A modern OAuth2 client library.
| .github/workflows | ||
| docs | ||
| src | ||
| tests | ||
| .gitignore | ||
| .php-cs-fixer.dist.php | ||
| composer.json | ||
| LICENSE.md | ||
| phpstan.neon.dist | ||
| phpunit.xml.dist | ||
| README.md | ||
PHP OAuth2 Client Library
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.4 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.