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 2w 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 41% 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

2423d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2288630?v=4)[zhanqi](/maintainers/zlab)[@zlab](https://github.com/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

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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