PHPackages                             sunnnnn/qq-connect - 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. sunnnnn/qq-connect

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

sunnnnn/qq-connect
==================

qq connect

1.0.3(9y ago)023MITPHPPHP &gt;=5.4.0

Since Dec 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sunnnnn/qq-connect)[ Packagist](https://packagist.org/packages/sunnnnn/qq-connect)[ RSS](/packages/sunnnnn-qq-connect/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

qq-connect - ThinkPHP 5 QQ登录
============================

[](#qq-connect---thinkphp-5-qq登录)

用于tp5框架下的qq快捷登录

composer安装: composer require sunnnnn/qq-connect

添加公共配置: config.php // QQ 互联配置 'qqconnect' =&gt; \[ 'appid' =&gt; '', 'appkey' =&gt; '', 'callback' =&gt; '', 'scope' =&gt; 'get\_user\_info,add\_share,list\_album,add\_album,upload\_pic,add\_topic,add\_one\_blog,add\_weibo,check\_page\_fans,add\_t,add\_pic\_t,del\_t,get\_repost\_list,get\_info,get\_other\_info,get\_fanslist,get\_idolist,add\_idol,del\_idol,get\_tenpay\_addr', 'errorReport' =&gt; true \]

示例代码
----

[](#示例代码)

### 页面编写:

[](#页面编写)

\#QQ登录

### 控制器编写:

[](#控制器编写)

登录 Oauth.php use sunnnnn\\qqconnect\\QC; class OauthController extends \\think\\Controller { public function qqLogin() { $qc = new QC(); return $this-&gt;redirect($qc-&gt;qq\_login()); } }

回调 Callback.php use sunnnnn\\qqconnect\\QC; class CallbackController extends \\think\\Controller { public function qqAction() { $qc = new QC(); $acs = $qc-&gt;qq\_callback(); // access\_token $openid = $qc-&gt;get\_openid(); // openid //获取用户信息 $qc = new QC($acs, $openid); $qqInfo = $qc-&gt;get\_user\_info(); } }

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

3475d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/154728928?v=4)[sunnnnn](/maintainers/sunnnnn)[@Sunnnnn](https://github.com/Sunnnnn)

---

Top Contributors

[![yaobuer](https://avatars.githubusercontent.com/u/12892462?v=4)](https://github.com/yaobuer "yaobuer (12 commits)")

### Embed Badge

![Health badge](/badges/sunnnnn-qq-connect/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

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

PHPackages © 2026

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