sandbox-dev/php-oauth2

OAuth 2.0 Client Library

1.0 2024-06-04 08:40 UTC

This package is auto-updated.

Last update: 2025-06-04 11:04:12 UTC


README

This package provides a base for integrating with OAuth 2.0 service providers.

This OAuth 2.0 is reference from league/oauth2-client package to support only our project requirements. Cannot be used for other projects.

This OAuth 2.0 client library will work with any OAuth 2.0 provider that conforms to the OAuth 2.0 Authorization Framework. Out-of-the-box, we provide a GenericProvider class to connect to any service provider that uses Bearer tokens. See basic usage guide

Requirements

We support the following versions of PHP:

  • PHP 8.3
  • PHP 8.2
  • PHP 8.1
  • PHP 8.0

Installation

Use the package manager composer to install azure-ad-auth.

composer require sandbox-dev/oauth2

Usage

For usage and code examples, check out our basic usage guide.

Contributing

Please see our contributing guidelines for details.

License

The MIT License (MIT). Please see LICENSE for more information.