PHPackages                             yandy/wechat-xiaowei - 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. [API Development](/categories/api)
4. /
5. yandy/wechat-xiaowei

ActiveLibrary[API Development](/categories/api)

yandy/wechat-xiaowei
====================

Wechat Small Micro Businessmen php sdk

v1.1(7y ago)2523118[1 issues](https://github.com/yandycom/wechat-xiaowei/issues)PHP

Since Apr 26Pushed 7y ago2 watchersCompare

[ Source](https://github.com/yandycom/wechat-xiaowei)[ Packagist](https://packagist.org/packages/yandy/wechat-xiaowei)[ RSS](/packages/yandy-wechat-xiaowei/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

wechat-xiaowei
==============

[](#wechat-xiaowei)

微信小微商户接口 全家桶 PHP SDK 包含了小微商户全部接口

[微信官方文档](https://pay.weixin.qq.com/wiki/doc/api/xiaowei.php?chapter=4_1)

#### 安装(PHP&gt;=7.0)

[](#安装php70)

> composer require yandy/wechat-xiaowei

#### 示例

[](#示例)

```

```

#### 说明

[](#说明)

1.请将证书文件放到Certificate目录下 然后再创建两个空文件 jiemi.json和jiemi.pem 并保证该目录有写入权限

2.下载证书解密返回的密文需要开启libsodium扩展（PHP &gt;= 7.2 安装包自带这个扩展，去php.ini开启一下就行，&lt; 7.2 的需要去安装这个扩展）

3.调用申请入驻等接口里面需要下载证书接口返回的序列号和需要解密后证书 public\_key 来加密敏感信息，所以需要先调用下载证书接口

#### 使用

[](#使用)

下载证书接口

> $wechat-&gt;downloadCertificates();

上传图片接口

> $wechat-&gt;uploadImg(); 传入参数media file文件

除了上面两个接口其余接口和参数请参考Wechat.php文件即可

#### 实现的接口

[](#实现的接口)

applyEnter 申请入驻小微商户

submitUpGrade 小微商户升级接口

upGradeIsThrough 小微商户升级接口状态查询

createJsBizPackage 企业付款到用户零钱

enquiryOfApplyStatus 入驻申请状态查询

tenantConfig 关注配置 小微商户关注功能配置API

payTheDirectoryConfig 支付目录配置 小微商户开发配置新增支付目录API

bindAppIdConfig 绑定appid配置 小微商户新增对应APPID关联API

inquireConfig 查询配置

modifyArchives 小微商户修改资料接口-修改结算银行卡

withdrawalState 服务商帮小微商户查询自动提现 - 查询提现状态

withdrawStatusMsg 提现状态单据状态字段的中文描述

reAutoWithdrawByDate 重新发起提现 - 服务商帮小微商户重新发起自动提现

getApplyEnterList 获取入驻列表

getBusiness 获取类目中文意思

getStoreAddress 传code获取中文地址

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

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

Total

2

Last Release

2611d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/535319?v=4)[Michael Ding](/maintainers/yandy)[@yandy](https://github.com/yandy)

---

Top Contributors

[![yandycom](https://avatars.githubusercontent.com/u/48586078?v=4)](https://github.com/yandycom "yandycom (14 commits)")

---

Tags

wechat

### Embed Badge

![Health badge](/badges/yandy-wechat-xiaowei/health.svg)

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

###  Alternatives

[overtrue/laravel-wechat

微信 SDK for Laravel

2.9k1.8M54](/packages/overtrue-laravel-wechat)[zoujingli/wechat-developer

WeChat and Alipay Platform Development

1.7k140.4k15](/packages/zoujingli-wechat-developer)[thenbsp/wechat

微信公众平台第三方 SDK 开发包，优雅、健壮，可扩展，遵循 PSR 开发规范。

9408.2k](/packages/thenbsp-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

26616.1k1](/packages/naixiaoxin-think-wechat)[jianyan74/yii2-easy-wechat

WeChat SDK for yii2, 基于 overtrue/easywechat

14339.9k1](/packages/jianyan74-yii2-easy-wechat)[gaoming13/wechat-php-sdk

微信公众平台php版开发包

3291.7k](/packages/gaoming13-wechat-php-sdk)

PHPackages © 2026

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