PHPackages                             sandbox-dev/php-oauth2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. sandbox-dev/php-oauth2

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

sandbox-dev/php-oauth2
======================

OAuth 2.0 Client Library

1.0(2y ago)07[1 issues](https://github.com/yanaphats/php-oauth2/issues)MITPHPPHP ^8.0

Since Jun 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/yanaphats/php-oauth2)[ Packagist](https://packagist.org/packages/sandbox-dev/php-oauth2)[ RSS](/packages/sandbox-dev-php-oauth2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

OAuth 2.0
=========

[](#oauth-20)

This package provides a base for integrating with [OAuth 2.0](http://oauth.net/2/) 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](http://tools.ietf.org/html/rfc6750). See [basic usage guide](https://oauth2.sandboxdev.tech/usage/)

Requirements
------------

[](#requirements)

We support the following versions of PHP:

- PHP 8.3
- PHP 8.2
- PHP 8.1
- PHP 8.0

Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/doc/00-intro.md/) to install azure-ad-auth.

```
composer require sandbox-dev/oauth2
```

Usage
-----

[](#usage)

For usage and code examples, check out our [basic usage guide](https://oauth2-client.thephpleague.com/usage/).

Contributing
------------

[](#contributing)

Please see [our contributing guidelines](https://github.com/thephpleague/oauth2-client/blob/master/CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/thephpleague/oauth2-client/blob/master/LICENSE) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

759d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81007074?v=4)[Yanaphat Sarantraivich](/maintainers/yanaphats)[@yanaphats](https://github.com/yanaphats)

---

Tags

AuthenticationSSOidentityoauthoauth2authorizationidpsingle sign on

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sandbox-dev-php-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/sandbox-dev-php-oauth2/health.svg)](https://phpackages.com/packages/sandbox-dev-php-oauth2)
```

###  Alternatives

[league/oauth2-client

OAuth 2.0 Client Library

3.8k128.7M1.3k](/packages/league-oauth2-client)[calcinai/oauth2-xero

Xero OAuth 2.0 Client Provider for The PHP League OAuth2-Client

103.4M4](/packages/calcinai-oauth2-xero)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
