PHPackages                             hehongyuanlove/flarum-auth-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. hehongyuanlove/flarum-auth-qq

ActiveFlarum-extension[Authentication &amp; Authorization](/categories/authentication)

hehongyuanlove/flarum-auth-qq
=============================

Allow users to log in with QQ

2.5.1(3y ago)111.0k11[2 issues](https://github.com/Hehongyuanlove/flarum-auth-qq/issues)[1 PRs](https://github.com/Hehongyuanlove/flarum-auth-qq/pulls)MITPHP

Since Sep 21Pushed 2y agoCompare

[ Source](https://github.com/Hehongyuanlove/flarum-auth-qq)[ Packagist](https://packagist.org/packages/hehongyuanlove/flarum-auth-qq)[ RSS](/packages/hehongyuanlove-flarum-auth-qq/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

QQ Auth Login by Hehongyuanlove
===============================

[](#qq-auth-login-by-hehongyuanlove)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/c7f7b0389957af2d73f32c3dbfd376c221568284080e46cedd332c80dfe7e148/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6865686f6e677975616e6c6f76652f666c6172756d2d617574682d71712e737667)](https://packagist.org/packages/hehongyuanlove/flarum-auth-qq)

A [Flarum](http://flarum.org) extension. Allow users to log in with QQ

### 重要说明

[](#重要说明)

- 用户名进行规范(允许汉字)
- 随机生成用户名
- 自动设置邮箱账号 同时密码也为邮箱账号 且自动激活邮箱
- 邮箱与密码相同

### 关于注册时邮箱用户名部分

[](#关于注册时邮箱用户名部分)

> 有其他需求 自行修改vendor/hehongyuanlove/flarum-auth-qq/src/QQAuthController.php

```
    $username = $this->RandomUserName();
    $random_email = $username. "@xxxxx.cn";
    $nickname     = $this->UserNameMatch($userinforesult["nickname"]) . str::upper(str::random(4));

    $registration
        ->provide("username", $username)
        ->provide("nickname", $nickname)
        ->provide("email", $random_email)
        ->provide("is_email_confirmed", 1)
        ->provide("password", $random_email)
        ->provideAvatar($userinforesult['figureurl_qq_2'])
        ->setPayload($userinforesult);

```

### 参考

[](#参考)

Copy from [nomiscz/flarum-ext-auth-wechat](https://packagist.org/packages/nomiscz/flarum-ext-auth-wechat)

### QQ互联回调地址

[](#qq互联回调地址)

- [https://域名/api/auth/qq](https://%E5%9F%9F%E5%90%8D/api/auth/qq)

### 安装

[](#安装)

Use [Bazaar](https://discuss.flarum.org/d/5151-flagrow-bazaar-the-extension-marketplace) or install manually with composer:

```
composer require hehongyuanlove/flarum-auth-qq
# 有兼容提示就
composer require hehongyuanlove/flarum-auth-qq:*
```

### 更新

[](#更新)

```
composer update hehongyuanlove/flarum-auth-qq
```

### Links

[](#links)

- [Packagist](https://packagist.org/packages/hehongyuanlove/flarum-auth-qq)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.1% 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 ~204 days

Total

2

Last Release

1126d ago

Major Versions

1.3.5 → 2.5.12023-04-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa0d3a0b1a1f236bb8d2baaef679eb988a9a7db7500c18395cc610fd2075db31?d=identicon)[Hehongyuanlove](/maintainers/Hehongyuanlove)

---

Top Contributors

[![Hehongyuanlove](https://avatars.githubusercontent.com/u/51571751?v=4)](https://github.com/Hehongyuanlove "Hehongyuanlove (49 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

Authenticationqqflarum

### Embed Badge

![Health badge](/badges/hehongyuanlove-flarum-auth-qq/health.svg)

```
[![Health](https://phpackages.com/badges/hehongyuanlove-flarum-auth-qq/health.svg)](https://phpackages.com/packages/hehongyuanlove-flarum-auth-qq)
```

###  Alternatives

[hwi/oauth-bundle

Support for authenticating users using both OAuth1.0a and OAuth2 in Symfony.

2.4k21.5M69](/packages/hwi-oauth-bundle)[league/oauth2-google

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

41721.2M118](/packages/league-oauth2-google)[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[fof/passport

The OAuth2 (and Laravel passport) compatible oauth extension

3013.3k](/packages/fof-passport)[nomiscz/flarum-ext-auth-wechat

Allow users to log in with WeChat

152.5k](/packages/nomiscz-flarum-ext-auth-wechat)

PHPackages © 2026

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