PHPackages                             busyphp/wechat-mini - 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. busyphp/wechat-mini

ActiveLibrary

busyphp/wechat-mini
===================

用于BusyPHP微信小程序开发，支持小程序服务端API，及事件处理

v1.0.1(4y ago)04CC-BY-NC-4.0PHP

Since Dec 13Pushed 4y ago1 watchersCompare

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

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

微信小程序插件
=======

[](#微信小程序插件)

提供默认服务入口地址
----------

[](#提供默认服务入口地址)

### 单小程序服务入口

[](#单小程序服务入口)

> http(s)://domain.com/plugins\_service/wechat\_mini/index.html

### 多小程序服务入口

[](#多小程序服务入口)

> http(s)://domain.com/plugins\_service/wechat\_mini/program/用户自定义标识.html

### 通过方法查看服务入口地址

[](#通过方法查看服务入口地址)

```
\BusyPHP\wechat\mini\app\controller\ServiceController::url(string $programId = '');
```

配置 `config/extend/wechat.php`
-----------------------------

[](#配置-configextendwechatphp)

```
return [
    'mini' => [
        // 小程序名称
        'name' => '',

        // 小程序 App Id
        'app_id'     => '',

        // 小程序 App Secret
        'app_secret' => '',

        // 服务器token
        'token'      => '',

        // todo 暂无意义
        // 消息加解密密钥 (EncodingAESKey)
        'encodingAESKey' => '',

        // 多小程序配置
        'multi'      => [
            '自定义标识' => [
                // 小程序名称
                'name'           => '',
                'app_id'         => '',
                'app_secret'     => '',
                'token'          => '',
                'encodingAESKey' => '',
            ]
        ],

        // 配置事件监听
        'listen' => [
            // 事件名称 => 事件类，需要实现handle方法，方法参数为本事件名类对象
            BusyPHP\wechat\mini\event\UserEnterTempSessionEvent::class => '',
            BusyPHP\wechat\mini\event\MiniProgramPageEvent::class      => '',
            BusyPHP\wechat\mini\event\TextEvent::class                 => '',
            BusyPHP\wechat\mini\event\ImageEvent::class                => '',
        ]
    ]
];
```

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

1539d ago

### Community

Maintainers

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

---

Top Contributors

[![brisk-php](https://avatars.githubusercontent.com/u/16153680?v=4)](https://github.com/brisk-php "brisk-php (8 commits)")

### Embed Badge

![Health badge](/badges/busyphp-wechat-mini/health.svg)

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

PHPackages © 2026

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