PHPackages                             hamcq/flarum-ext-auth-wechat - 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. hamcq/flarum-ext-auth-wechat

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

hamcq/flarum-ext-auth-wechat
============================

Allow users to log in with WeChat

1.2(1y ago)3109↓100%2MITPHP

Since Aug 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/HamCQ/flarum-ext-auth-wechat)[ Packagist](https://packagist.org/packages/hamcq/flarum-ext-auth-wechat)[ RSS](/packages/hamcq-flarum-ext-auth-wechat/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (48)Used By (0)

基于  项目进行二次修改，支持移动端微信登录跳转，桌面端依旧支持二维码扫码登录

需要额外配置公众号APP\_ID, APP\_SEC

安装方式：

composer require hamcq/flarum-ext-auth-wechat

### 优化体验配置：

[](#优化体验配置)

扫码登录后，已绑定的用户可以直接登录，未绑定的用户会提示注册账号，需要前往后台-外观-编辑自定义页脚，添加如下代码，完善使用体验：

```

window.onload = function () {
    if(window.location.href.indexOf("wechat_user") != -1){
        if(app.data.session.userId!=""){
         window.location.href ="https://forum.hamcq.cn"
        }
        var log=JSON.parse(decodeURIComponent(window.location.href.split("=")[1]));
        window.app.authenticationComplete(log);
        window.app.alerts.show({type: 'warning'}, '未查询到绑定信息，请注册账号即可完成绑定');
    }
};

```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance40

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~19 days

Recently: every ~213 days

Total

47

Last Release

502d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5239669e26ddbddb4730d00f17eb0bd2b34494f32edfa5f4dd96c0ef78c50972?d=identicon)[Eminlin](/maintainers/Eminlin)

---

Top Contributors

[![NomisCZ](https://avatars.githubusercontent.com/u/7500606?v=4)](https://github.com/NomisCZ "NomisCZ (18 commits)")[![Eminlin](https://avatars.githubusercontent.com/u/20252561?v=4)](https://github.com/Eminlin "Eminlin (17 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (6 commits)")[![littlegolden](https://avatars.githubusercontent.com/u/35162802?v=4)](https://github.com/littlegolden "littlegolden (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![LCinHK](https://avatars.githubusercontent.com/u/49670244?v=4)](https://github.com/LCinHK "LCinHK (1 commits)")

---

Tags

Authenticationwechatflarum

### Embed Badge

![Health badge](/badges/hamcq-flarum-ext-auth-wechat/health.svg)

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

###  Alternatives

[nomiscz/flarum-ext-auth-wechat

Allow users to log in with WeChat

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

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[hehongyuanlove/flarum-auth-qq

Allow users to log in with QQ

111.0k](/packages/hehongyuanlove-flarum-auth-qq)

PHPackages © 2026

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