miniorange / phpoauth
Requires
- firebase/php-jwt: ^6.10
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- firebase/php-jwt: ^6.10
- vlucas/phpdotenv: ^5.6
README
The PHP OAuth Connector library provides an easy-to-use interface for implementing OAuth 2.0 authentication in PHP applications. Whether you are working with implicit grant, authorization code, or password grant, this library simplifies the integration process and handles token generation, verification, and user authentication.
Features
-
Supports multiple OAuth 2.0 grant types:
-
Implicit Grant
-
Authorization Code Grant
-
Password Grant
-
PKCE (Proof Key for Code Exchange)
-
Easy setup and configuration
-
Token validation using a PEM certificate
-
Compatible with all major PHP frameworks (Laravel, Yii, Symfony, etc.)
Autoload support with Composer
Usage
Requirements
-
PHP 8.1 or later
-
Composer for managing dependencies
Supported Grant Types
- Implicit Grant
- Authorization Code Grant
- Password Grant
- PKCE (Proof Key for Code Exchange)
License
This library is open-sourced software licensed under the MIT license.