A modern OAuth2 client library.
Find a file
2025-12-06 07:55:25 +01:00
.github/workflows Add PHP 8.5 to CI runs 2025-12-06 07:55:25 +01:00
docs Enhance custom providers example 2024-06-07 15:49:20 +02:00
src Switch to PER coding style 2025-10-19 14:53:56 +02:00
tests Upgrade to Pest 4.x 2025-10-19 15:20:28 +02:00
.gitignore Upgrade to Pest 3.x 2025-04-19 08:03:43 +02:00
.php-cs-fixer.dist.php Switch to PER coding style 2025-10-19 14:53:56 +02:00
composer.json Upgrade to Pest 4.x 2025-10-19 15:20:28 +02:00
LICENSE.md Initial 2020-06-16 20:18:11 +02:00
phpstan.neon.dist Upgrade to PHPStan 2.x 2025-04-19 08:13:30 +02:00
phpunit.xml.dist Upgrade to Pest 3.x 2025-04-19 08:03:43 +02:00
README.md Bump min required PHP version to 8.4 2025-10-19 14:44:20 +02:00

PHP OAuth2 Client Library

Packagist build Coverage Status

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

Installation

Via Composer:

composer require jwilsson/oauth2-client

Usage

See the docs folder for complete usage information.