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

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

jzyuchen/oauth-client
=====================

oauth client for laravel

0.1.x-dev(11y ago)9576MITPHPPHP &gt;=5.3.3

Since May 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jzyuchen/laravel-5-oauth-client)[ Packagist](https://packagist.org/packages/jzyuchen/oauth-client)[ RSS](/packages/jzyuchen-oauth-client/feed)WikiDiscussions master Synced 1mo ago

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

laravel-5-oauth-client
======================

[](#laravel-5-oauth-client)

qq, weibo, weixin oauth for laravel 5

QQ 调用示例
=======

[](#qq-调用示例)

1.获取QQ验证的用户确认URL
----------------

[](#1获取qq验证的用户确认url)

```
$oauth = new OAuthClient();
$qq = $oauth->get('qq');
echo $qq->getAuthorizationUrl();
```

2.QQ回调处理
--------

[](#2qq回调处理)

```
$oauth = new OAuthClient();
$provider = $oauth->get('qq');
// Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken('authorization_code', [
    'code' => Input::get('code')
]);

// Optional: Now you have a token you can look up a users profile data
try {

    // We got an access token, let's now get the user's details
    $userDetails = $provider->getUserDetails($token);
    // Use these details to create a new profile
    printf('Hello %s!', $userDetails->firstName);

} catch (Exception $e) {

    // Failed to get user details
    exit('Oh dear...');
}

echo '';
var_dump($userDetails);
echo "\n";

// Use this to interact with an API on the users behalf
echo $token->accessToken."\n";

// Use this to get a new access token if the old one expires
echo $token->refreshToken."\n";

// Number of seconds until the access token will expire, and need refreshing
echo $token->expires."\n";

var_dump($token);
echo '';
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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

Unknown

Total

1

Last Release

4024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/323e47aaa5b78a5e629d51dfbc2cf826aefbd6cf0acc48c0d000d101335433f9?d=identicon)[jzyuchen](/maintainers/jzyuchen)

---

Top Contributors

[![jzyuchen](https://avatars.githubusercontent.com/u/3984928?v=4)](https://github.com/jzyuchen "jzyuchen (7 commits)")[![i255979](https://avatars.githubusercontent.com/u/5971288?v=4)](https://github.com/i255979 "i255979 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[league/oauth2-google

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

42121.2M118](/packages/league-oauth2-google)[knpuniversity/oauth2-client-bundle

Integration with league/oauth2-client to provide services

84016.7M61](/packages/knpuniversity-oauth2-client-bundle)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

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

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[microsoft/kiota-authentication-phpleague

Authentication provider for Kiota using the PHP League OAuth 2.0 client to authenticate against the Microsoft Identity platform

153.2M7](/packages/microsoft-kiota-authentication-phpleague)

PHPackages © 2026

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