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(1y ago)07[1 issues](https://github.com/yanaphats/php-oauth2/issues)MITPHPPHP ^8.0

Since Jun 4Pushed 1y 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 1mo ago

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

23

—

LowBetter than 27% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

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

713d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3789e94468cded5456f7acb33c8e4c09c77cb2bc79c6ef34c163164773ce9aa?d=identicon)[yanaphats](/maintainers/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.8k118.6M1.2k](/packages/league-oauth2-client)

PHPackages © 2026

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