PHPackages                             ccc008/yii2-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. ccc008/yii2-wechat

ActiveYii2-extension

ccc008/yii2-wechat
==================

The wechat module for the Yii framework

0.2(11y ago)00MITPHP

Since Nov 26Pushed 6y agoCompare

[ Source](https://github.com/ccc008/yii2-wechat)[ Packagist](https://packagist.org/packages/ccc008/yii2-wechat)[ RSS](/packages/ccc008-yii2-wechat/feed)WikiDiscussions master Synced yesterday

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

Yii-wechat
==========

[](#yii-wechat)

**该项目仅做学习, 抱歉因为工作原因没有太多时间管理, 已停止开发**

感谢选择 Yii-wechat，基于 [Yii2](https://github.com/yiisoft/yii2) 框架基础实现的模块。

[![Total Downloads](https://camo.githubusercontent.com/5631a0f15210e3985ab25116c8978070e892ce94e1fa727694d2f522d4805237/68747470733a2f2f706f7365722e707567782e6f72672f63616c6c6d657a2f796969322d7765636861742f646f776e6c6f616473)](https://packagist.org/packages/callmez/yii2-wechat)

注意
--

[](#注意)

- 如果是全新使用`Yii2`和`Yii2-wechat`,你可以使用 [Yii2-app-wechat](https://github.com/callmez/yii2-app-wechat) 微信应用模板(可在该模板基础上开发).
- 如果是已有的`Yii2`项目扩展`Yii2-wechat`, 请遵循下面的安装步骤使用.
- 如果想深度二次开发`Yii2-wechat`模块, 只需下载代码放到项目的`modules`目录中, 并把`Yii2-wechat`中`composer.json`的`require`, `require-dev`, `autoload` 三个节点(没有的节点可忽略)的内容**合并**到您的项目`composer.json`中, 并在项目目录下执行`composer update`命令. 该实现需要一定的PHP功底, 并且会放弃后期的版本升级功能.
- **另本项目仍在开发阶段, 很多功能仍需思考, 建议仅用于`Yii2`和`wechat`功能学习**

环境条件
----

[](#环境条件)

- > = php5.4
- > = Yii2

特点
--

[](#特点)

- 多公众号管理
- 企业号支持?
- 消息回复
    - 文本回复
    - 图文回复
    - 音乐回复
    - 语音回复
    - 视频回复
    - 图片回复
    - 远程回复
- 素材管理
- 自定义菜单
- 二维码管理
- 卡券功能
- 多客服
- 粉丝
    - 粉丝管理
    - 粉丝分组
    - 粉丝互动
- 消息
    - 历史记录
    - 普通(微信)群发
- 支付
    - 微信支付
    - 支付宝
- 插件
    - 模块扩展平台
    - 基本模块
- 开发支持
    - 微信模拟器
    - 开发文档
- 待定功能

**想提新功能?** 提交[issue](https://github.com/callmez/yii2-wechat/issues)安装
---------------------------------------------------------------------

[](#想提新功能-提交issue安装)

安装步骤如下(2种方式)：

1. 通过composer.json文件安装

    - `cd 项目目录 && composer require callmez/yii2-wechat`

    或者

    - 项目目录下的composer.json
    - 添加`"callmez/yii2-wechat": "dev-master"`内容,然后执行`composer update` (模块中使用了angular的bower源,请确定使用[composer-asset-plugin](https://github.com/francoispluchino/composer-asset-plugin) **大于** `beta4`的版本)

    ```
    "require": {
        ...
        "callmez/yii2-wechat": "*",
        ...
    }

    ```

### 安装完后, 在`config/web.php` 文件中配置`module`配置和`components`配置(`...`号代表其他设置)

[](#安装完后-在configwebphp-文件中配置module配置和components配置号代表其他设置)

```
  ...
  'modules' => [
    ...
    'wechat' => [ // 指定微信模块
        'class' => 'callmez\wechat\Module',
        'adminId' => 1 // 填写管理员ID, 该设置的用户将会拥有wechat最高权限, 如多个请填写数组 [1, 2]
    ]
    ...
  ],
  'components' => [
    ...
    'request' => [
          ...
          'parsers' => [ // 因为模块中有使用angular.js  所以该设置是为正常解析angular提交post数据
              ...
              'application/json' => 'yii\web\JsonParser'
          ]
      ],
    ...
  ]
  ...
```

3. 最后生成数据库表(请确定数据库连接正常)

执行命令 `php yii migrate --migrationPath=@callmez/wechat/migrations` 根据提示安装数据库即可

反馈或贡献代码
-------

[](#反馈或贡献代码)

您可以在[这里](https://github.com/callmez/yii2-wechat/issues)给我们提出在使用中碰到的问题或Bug。

你也可以发送邮件****说明您的问题。

交流QQ群: `343188481` (注明企图)

如果你有更好代码实现,请 fork 此项目并发起您的 Pull-Request，我会及时处理。感谢!

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.8% 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 ~162 days

Total

2

Last Release

4024d ago

### Community

Maintainers

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

---

Top Contributors

[![callmez](https://avatars.githubusercontent.com/u/1625891?v=4)](https://github.com/callmez "callmez (239 commits)")[![ccc008](https://avatars.githubusercontent.com/u/8074421?v=4)](https://github.com/ccc008 "ccc008 (2 commits)")[![aiddroid](https://avatars.githubusercontent.com/u/3241146?v=4)](https://github.com/aiddroid "aiddroid (1 commits)")

---

Tags

yii2modulewechatweixin

### Embed Badge

![Health badge](/badges/ccc008-yii2-wechat/health.svg)

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

###  Alternatives

[callmez/yii2-wechat

The wechat module for the Yii framework

3841.1k](/packages/callmez-yii2-wechat)[callmez/yii2-wechat-sdk

The wechat api for the Yii framework

32213.6k3](/packages/callmez-yii2-wechat-sdk)[zhuravljov/yii2-rest

Yii2 REST Client

1186.2k](/packages/zhuravljov-yii2-rest)[lowbase/yii2-user

Yii2 user module

131.5k2](/packages/lowbase-yii2-user)

PHPackages © 2026

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