PHPackages                             taofeiyang/weixin-mini-program - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. taofeiyang/weixin-mini-program

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

taofeiyang/weixin-mini-program
==============================

weixin mini program develop tools

v1.1(6y ago)220[1 PRs](https://github.com/mist-river/weixin-mini-program/pulls)MITPHPCI passing

Since Nov 13Pushed 3w ago1 watchersCompare

[ Source](https://github.com/mist-river/weixin-mini-program)[ Packagist](https://packagist.org/packages/taofeiyang/weixin-mini-program)[ RSS](/packages/taofeiyang-weixin-mini-program/feed)WikiDiscussions master Synced 2d ago

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

### weixin-mini-program是一个使用简单、功能丰富的微信小程序开发sdk。

[](#weixin-mini-program是一个使用简单功能丰富的微信小程序开发sdk)

#### 包含功能：

[](#包含功能)

1. 小程序登录
2. 微信加密数据解密
3. 获取accessToken
4. 生成小程序码
5. 发送订阅消息
6. 支付统一下单
7. 支付回调
8. 支付查询
9. 退款
10. 退款回调
11. 退款查询

#### 目录及文件介绍

[](#目录及文件介绍)

1. src为源码目录，tests目录为测试脚本目录。该sdk中所封装的所有功能均有对应的测试脚本。
2. src/Common/Api封装了功能1、3、4、5，src/Common/Tools封装了功能2，src/Pay/Client封装了功能6、8、9、11，src/Pay/Notify封装了功能7、10
3. 文件ConfigInterface.php为配置接口类，使用该sdk必须实现该配置类。
4. 文件LogInterface.php为日志接口类，实现该接口可以记录支付接口日志。建议存储采用MongoDB。
5. NotifyHandleInterface.php为通知处理接口类，使用该sdk必须实现该接口类。其作用是根据业务具体情况，处理回调逻辑。
6. WxException.php为微信操作异常类。

#### 安装及使用

[](#安装及使用)

##### 安装

[](#安装)

composer require taofeiyang/weixin-mini-program

##### 使用

[](#使用)

tests目录中有完整的测试脚本，这些脚本可以作为demo直接参考使用，所有测试脚本均通过phpunit测试通过。

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

2262d ago

### Community

Maintainers

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

---

Top Contributors

[![mist-river](https://avatars.githubusercontent.com/u/6435306?v=4)](https://github.com/mist-river "mist-river (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taofeiyang-weixin-mini-program/health.svg)

```
[![Health](https://phpackages.com/badges/taofeiyang-weixin-mini-program/health.svg)](https://phpackages.com/packages/taofeiyang-weixin-mini-program)
```

PHPackages © 2026

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