PHPackages                             zzstudio/think-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. zzstudio/think-wechat

ActiveLibrary

zzstudio/think-wechat
=====================

微信 SDK for thinkphp5.1, 基于 overtrue/wechat

v2.1(7y ago)491Apache-2.0PHP

Since Jun 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/zz-studio/think-wechat)[ Packagist](https://packagist.org/packages/zzstudio/think-wechat)[ RSS](/packages/zzstudio-think-wechat/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

think-wechat
============

[](#think-wechat)

微信 SDK for thinkphp5.1.x, 基于 [overtrue/wechat](https://github.com/overtrue/wechat)

安装方法
----

[](#安装方法)

### 第一步 使用composer下载SDK

[](#第一步-使用composer下载sdk)

```
composer require zzstudio/think-wechat
```

### 第二步 发布配置文件到TP目录

[](#第二步-发布配置文件到tp目录)

项目根目录执行

```
php think wechat:config
```

> 查看 config/wechat.php 这个文件是否存在，如果不存在手动复制一份这个文件 [config.php](https://raw.githubusercontent.com/zz-studio/think-wechat/master/src/config.php) 到 application/config 这个位置

使用方法
----

[](#使用方法)

具体参考手册 [手册](https://easywechat.org/zh-cn/docs/)

TP中使用代码类似

```
use think\Wechat;

// 公众号
$app = Wechat::officialAccount();

// 小程序
$app = Wechat::miniProgram();

// 开放平台
$app = Wechat::openPlatform();

// 企业微信
$app = Wechat::weWork();

// 微信支付
$app = Wechat::payment();
```

如果有不懂的，可以下面评论。

也欢迎大家在github提交issue和PR

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

2719d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14342127?v=4)[xiaobo.sun](/maintainers/5ini99)[@5ini99](https://github.com/5ini99)

---

Top Contributors

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

---

Tags

wechatweixinthinkphp5

### Embed Badge

![Health badge](/badges/zzstudio-think-wechat/health.svg)

```
[![Health](https://phpackages.com/badges/zzstudio-think-wechat/health.svg)](https://phpackages.com/packages/zzstudio-think-wechat)
```

###  Alternatives

[w7corp/easywechat

微信SDK

10.4k761.6k60](/packages/w7corp-easywechat)[overtrue/laravel-wechat

微信 SDK for Laravel

3.0k1.8M53](/packages/overtrue-laravel-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

27316.1k1](/packages/naixiaoxin-think-wechat)

PHPackages © 2026

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