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

ActiveYii2-extension

zacksleo/yii2-wechat
====================

Yii2 wechat module

3.1.5(6y ago)61.1k[1 issues](https://github.com/zacksleo/yii2-wechat/issues)BSD-3-ClauseCSSCI failing

Since Dec 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zacksleo/yii2-wechat)[ Packagist](https://packagist.org/packages/zacksleo/yii2-wechat)[ RSS](/packages/zacksleo-yii2-wechat/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (8)Versions (24)Used By (0)

Yii2 后台微信模块
===========

[](#yii2-后台微信模块)

[![Latest Stable Version](https://camo.githubusercontent.com/c58b10339b12d9ae329ad4e126a8c887500485d6f839e86d0be6bc3240965dde/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d7765636861742f76657273696f6e)](https://packagist.org/packages/yii2-wechat/phpsms)[![Total Downloads](https://camo.githubusercontent.com/3abaa7d0277a3bd6d7e5b45e61be4681d3e39385e4f8b696da903ba9279efb55/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d7765636861742f646f776e6c6f616473)](https://packagist.org/packages/yii2-wechat/phpsms)[![License](https://camo.githubusercontent.com/f06e1c836e16518078a48001a05ac61ddca11f04099028ccb77128261819ba87/68747470733a2f2f706f7365722e707567782e6f72672f7a61636b736c656f2f796969322d7765636861742f6c6963656e7365)](https://packagist.org/packages/yii2-wechat/phpsms)

准备工作
----

[](#准备工作)

### 首先配置 [yii2-easy-wechat](https://github.com/jianyan74/yii2-easy-wechat)

[](#首先配置-yii2-easy-wechat)

### 配置模块依赖

[](#配置模块依赖)

> 注意 layout和layoutPath写实际使用的布局文件, 文件内容参考 src/layouts

#### 配置 component

[](#配置-component)

```
'components' => [

   'settings' => [
        'class' => 'pheme\settings\components\Settings',
    ],
]

```

#### 配置 modules

[](#配置-modules)

```
'modules' => [

    'settings' => [
       'class' => 'pheme\settings\Module',
    ],
    'treemanager' => [
          'class' => 'kartik\tree\Module',
      ],
    'wechat' => [
        'class' => 'zacksleo\yii2\wechat\backend\Module',
    ],
]

```

安装
--

[](#安装)

```
composer require zacksleo\yii2-wechat --prefer-dist

```

数据库迁移
-----

[](#数据库迁移)

### 配置数据库迁移

[](#配置数据库迁移)

对于高级模板（yii2-app-advanced）, 配置 `console/config/main.php` 文件：

```
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => [
                '@console/migrations/',
                '@pheme/settings/migrations',
                '@zacksleo/yii2/wechat/migrations'
            ],
        ],
    ],

```

对于基础模板 （yii2-app-basic）, 配置 `config/console.php` 文件：

```
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => [
                '@app/migrations/',
                '@pheme/settings/migrations',
                '@zacksleo/yii2/wechat/migrations'
            ],
        ],
    ],

```

### 执行迁移

[](#执行迁移)

```
yii migrate/up

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

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

Recently: every ~1 days

Total

23

Last Release

2507d ago

Major Versions

1.1.0 → 2.0.02018-07-31

2.0.1 → 3.0.02019-04-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e97b8a6f67b09513e345a128d73a63898ae1ec9f6a6c77234c78b3f16d305d1?d=identicon)[zacksleo](/maintainers/zacksleo)

---

Top Contributors

[![zacksleo](https://avatars.githubusercontent.com/u/3369169?v=4)](https://github.com/zacksleo "zacksleo (80 commits)")

---

Tags

wechatyii2yii2-extensionyii2modulewechat

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[callmez/yii2-wechat

The wechat module for the Yii framework

3841.1k](/packages/callmez-yii2-wechat)[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)
