PHPackages                             wll/oauth-qq - 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. wll/oauth-qq

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

wll/oauth-qq
============

laravel-oauth-qq

01[1 issues](https://github.com/gg22mm/oauth-qq/issues)PHP

Since Sep 24Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

oauth-qq
========

[](#oauth-qq)

laravel qq授权 redis缓存方式

基本使用
----

[](#基本使用)

1、 下载包

```
composer require wll/oauth-qq
```

2、 app.php 添加 providers

```
Wll\OauthQq\OauthProvider::class,
```

3、 发布配置文件在config目录下面

```
php artisan vendor:publish
```

4、修改：config/oauth-qq.php

```
return   [

	'qq' => [
        'client_id' => env('QQ_KEY','QQ互联申请的APP ID'),
        'client_secret' => env('QQ_SECRET','QQ互联申请的key'),
        'redirect' => env('QQ_REDIRECT_URI','QQ互联申请的时配置的回调url')
    ],

];
```

5、开始使用 - 授权控制器中写

```
use Illuminate\Http\Request;
use Wll\OauthQq\Facades\Oauth;

//拉起qq授权

Oauth::oauth($request)
```

6、获取缓存中的授权数据-回调控制器中写

```
use Illuminate\Support\Facades\Cache;
use Illuminate\Http\Request;
use Wll\OauthQq\Facades\Oauth;

//授权后返回的code 与 state key
$state = $request->input('state');
$code = $request->input('code');

//获取授权qq用户信息
$qqUserInfo=Oauth::getUserInfoByCode($code);

//print_r($qqUserInfo);

//通过state获取qq授权时传的参数
$qqAauthParam = Cache::get('qq:oauth:state:' . $state);

//print_r($qqAauthParam);

//以下就可以写用户注册数据库逻辑......
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aa796e37c43d70ba54a6aba07bb50efeca3c0061a82bdd58d6e5bee312fe315?d=identicon)[gg22mm](/maintainers/gg22mm)

---

Top Contributors

[![gg22mm](https://avatars.githubusercontent.com/u/6648329?v=4)](https://github.com/gg22mm "gg22mm (5 commits)")

### Embed Badge

![Health badge](/badges/wll-oauth-qq/health.svg)

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

###  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)
