PHPackages                             xxtime/oauth-client - 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. xxtime/oauth-client

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

xxtime/oauth-client
===================

oauth2.0 client

1.1.0(6y ago)028PHPPHP &gt;=5.5

Since Nov 21Pushed 6y ago3 watchersCompare

[ Source](https://github.com/xxtime/oauth-client)[ Packagist](https://packagist.org/packages/xxtime/oauth-client)[ Docs](https://github.com/xxtime)[ RSS](/packages/xxtime-oauth-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Oauth-client
------------

[](#oauth-client)

Oauth-client is use for the third-part account login verify on the backend server.
It support Google, Facebook, Weixin, Weibo etc.

Install
-------

[](#install)

```
composer require xxtime/oauth-client
```

How to use it
-------------

[](#how-to-use-it)

```
$id = '{Google account id}';
$token = '{Google login account token}';
$option = [
    'clientId' => '{Google app id}'
];
try {
    $oauth = new OauthAdaptor('google', $option);
    $user = $oauth->verify($id, $token);
    print_r($user);
} catch (\Exception $e) {
    echo $e->getMessage();
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

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

Every ~720 days

Total

2

Last Release

2376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d98ca75291ed585ef10c792c72d0da28ae541c80e172f123acaf35f0aacd9b5?d=identicon)[zlab](/maintainers/zlab)

---

Top Contributors

[![ccajax](https://avatars.githubusercontent.com/u/8519780?v=4)](https://github.com/ccajax "ccajax (3 commits)")[![greenBird321](https://avatars.githubusercontent.com/u/10293157?v=4)](https://github.com/greenBird321 "greenBird321 (1 commits)")

### Embed Badge

![Health badge](/badges/xxtime-oauth-client/health.svg)

```
[![Health](https://phpackages.com/badges/xxtime-oauth-client/health.svg)](https://phpackages.com/packages/xxtime-oauth-client)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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