PHPackages                             iwechatpay/openapi - 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. iwechatpay/openapi

ActiveLibrary[API Development](/categories/api)

iwechatpay/openapi
==================

为 wechatpay/wechatpay 增加IDE提示的接口描述包。

v1.1.15(2mo ago)406.7k↓25.9%6MITPHPPHP &gt;=7.2CI passing

Since Sep 25Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/TheNorthMemory/wechatpay-openapi)[ Packagist](https://packagist.org/packages/iwechatpay/openapi)[ Docs](https://wechatpay.im/openapi/)[ RSS](/packages/iwechatpay-openapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (83)Used By (0)

微信支付OpenAPI
===========

[](#微信支付openapi)

整理自[官方文档中心](https://pay.weixin.qq.com/wiki/doc/apiv3/index.shtml)

[![GitHub actions](https://github.com/TheNorthMemory/wechatpay-openapi/workflows/CI/badge.svg)](https://github.com/TheNorthMemory/wechatpay-openapi/actions)[![Packagist Stars](https://camo.githubusercontent.com/f3449ab87a7c0f0c1befb6b01b4e3440fe9f4c34a941ba4c920c4f5e9dbc8058/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f697765636861747061792f6f70656e617069)](https://packagist.org/packages/iwechatpay/openapi)[![Packagist Downloads](https://camo.githubusercontent.com/e20857a746ec5575045c5a0f30f25ceebddb1e0953a225f655a78f7a0ef313ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f697765636861747061792f6f70656e617069)](https://packagist.org/packages/iwechatpay/openapi)[![Packagist Version](https://camo.githubusercontent.com/ff1388cc3dfd7972f2ce8a56919fa61d29376aed6663d4b4d7da2d50c13c85e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f697765636861747061792f6f70656e617069)](https://packagist.org/packages/iwechatpay/openapi)[![Packagist PHP Version Support](https://camo.githubusercontent.com/d4ebeb93f4165ae9df90a25dc1b2e24820396c685b55b6a79181799d0b42ad7e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f697765636861747061792f6f70656e617069)](https://packagist.org/packages/iwechatpay/openapi)[![Packagist License](https://camo.githubusercontent.com/ddd628bf3fce46a37b37ff386b578574a62a2ffdaf2545ef8dd316809a798146/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f697765636861747061792f6f70656e617069)](https://packagist.org/packages/iwechatpay/openapi)

业务标签
----

[](#业务标签)

名称直连模式服务商模式基础支付✔️基础支付∙服务商模式✔️基础支付∙合单✔️基础支付∙账单✔️✔️基础支付∙退款✔️✔️刷脸支付✔️免密支付✔️✔️微信分付✔️✔️资金应用∙分账✔️资金应用∙转账✔️资金应用∙转账∙QQ钱包✔️资金应用∙转账∙用户确认模式✔️资金应用∙转账∙服务商模式✔️资金应用∙转账∙银行模式✔️收付通∙进件✔️收付通∙注销✔️收付通∙支付✔️收付通∙合单✔️收付通∙合单代扣✔️收付通∙个人收款✔️收付通∙补差✔️收付通∙分账✔️收付通∙退款✔️收付通∙充值✔️收付通∙余额✔️收付通∙提现✔️收付通∙赔付✔️收付通∙售后赔付✔️收付通∙保险理赔✔️收付通∙账单✔️收付通∙跨境✔️平台保证金∙赔付用户✔️平台保证金∙赔付商户✔️平台保证金∙赔付用户运费✔️平台保证金∙赔付保司保费✔️服务商∙进件✔️会员卡✔️✔️会员卡∙基础功能✔️✔️会员卡∙运营投放✔️✔️会员卡∙权益设置✔️✔️会员卡∙会员有礼✔️✔️支付分✔️支付分∙免确认模式✔️支付分∙免确认模式∙普通授权✔️支付分∙免确认模式∙预授权✔️支付分∙签约计划✔️✔️支付分∙先享卡✔️支付分∙先用后付✔️✔️支付分∙先享后付✔️支付分∙智慧零售✔️支付分∙停车服务✔️✔️支付分∙服务商模式✔️支付分∙服务商模式∙免确认✔️支付分∙机构模式✔️支付分∙海外机构模式✔️品牌小店营销✔️✔️微信寄快递✔️委托代扣✔️✔️委托代扣∙保险业✔️校园轻松付✔️教育续费通✔️✔️学生卡身份权益✔️爱心餐✔️✔️乘车服务✔️✔️ETC授权扣费✔️✔️电动自行车行业代扣✔️✔️出租车电子发票✔️租用充电宝∙隔夜归还✔️运营工具∙代金券✔️✔️运营工具∙消费金✔️运营工具∙商家券✔️✔️运营工具∙委托营销✔️✔️运营工具∙支付有礼✔️✔️运营工具∙消费卡✔️✔️运营工具∙用工卡✔️运营工具∙通用接口✔️✔️经营工具∙智慧商圈✔️✔️经营工具∙支付即服务✔️✔️经营工具∙点金计划✔️经营工具∙连锁品牌∙分账✔️✔️经营工具∙连锁品牌∙门店✔️✔️经营工具∙微信点餐✔️经营工具∙电子发票✔️✔️经营工具∙电子小票✔️经营工具∙小票机✔️营销工具∙收款有礼✔️✔️营销工具∙代扣切卡✔️✔️营销工具∙周周惠✔️商家充值✔️✔️结算规则管理✔️风险管理✔️✔️风险合规∙消费者投诉✔️✔️风险合规∙商户违规通知✔️✔️风险合规∙开户意愿确认✔️✔️风险合规∙不活跃商户身份核实✔️通用接口✔️✔️跨境✔️✔️跨境∙进件✔️跨境∙报关✔️✔️跨境∙支付✔️✔️跨境∙退款✔️✔️跨境∙分账✔️✔️跨境∙代扣✔️✔️跨境∙H5权限✔️沙箱环境✔️✔️APIv2∙人脸支付✔️APIv2∙基础支付✔️✔️APIv2∙基础支付∙合单✔️✔️APIv2∙基础支付∙账单✔️✔️APIv2∙基础支付∙退款✔️✔️APIv2∙资金应用∙分账✔️✔️APIv2∙资金应用∙红包✔️✔️APIv2∙资金应用∙付款✔️✔️APIv2∙车主平台✔️✔️APIv2∙乘车码代扣✔️✔️APIv2∙免押租借✔️APIv2∙免押速住✔️APIv2∙酒店押金✔️✔️APIv2∙委托扣款✔️✔️APIv2∙代金券✔️✔️APIv2∙小微✔️APIv2∙风控✔️✔️APIv2∙报关✔️✔️APIv2∙通用✔️✔️APIv2∙企微∙红包✔️APIv2∙企微∙付款✔️PHP
---

[](#php)

推荐使用 `composer` 安装

`composer require --dev iwechatpay/openapi`

IDE提示
-----

[](#ide提示)

[工作原理及介绍见这里](https://developers.weixin.qq.com/community/develop/article/doc/000a0ce867842092f8cc65e5356013)

[![vscode screenshot](./.github/how-it-works-screenshot-1.png)](./.github/how-it-works-screenshot-1.png)

[![vscode screenshot](./.github/how-it-works-screenshot-2.png)](./.github/how-it-works-screenshot-2.png)

[![vscode screenshot](./.github/how-it-works-screenshot-3.png)](./.github/how-it-works-screenshot-3.png)

特殊URI语法规则
---------

[](#特殊uri语法规则)

源URI模版变量值`secapi/mch/addInstitutionsub``{addinstitutionsub}` [1](#user-content-fn-1-ef926861afeb02a57721eda82e601df6)`addInstitutionsub``secapi/mch/modifyInstitutionsub``{modifyinstitutionsub}` [1](#user-content-fn-1-ef926861afeb02a57721eda82e601df6)`modifyInstitutionsub``secapi/mch/queryInstitutionsub``{queryinstitutionsub}` [1](#user-content-fn-1-ef926861afeb02a57721eda82e601df6)`queryInstitutionsub``v3/applyment4sub/applyment/``{empty}` [2](#user-content-fn-2-ef926861afeb02a57721eda82e601df6)`v3/ecommerce/applyments/``{empty}` [2](#user-content-fn-2-ef926861afeb02a57721eda82e601df6)License
-------

[](#license)

[MIT](LICENSE)

Footnotes
---------

1. 源URI上含有`I`大写字符，需要用模版变量构造 [↩](#user-content-fnref-1-ef926861afeb02a57721eda82e601df6) [↩2](#user-content-fnref-1-2-ef926861afeb02a57721eda82e601df6) [↩3](#user-content-fnref-1-3-ef926861afeb02a57721eda82e601df6)
2. 源URI末尾以`/`结尾，需要值为用空的模版变量构造，`{empty}`为`RFC6570`Level3保留语法 [↩](#user-content-fnref-2-ef926861afeb02a57721eda82e601df6) [↩2](#user-content-fnref-2-2-ef926861afeb02a57721eda82e601df6)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance83

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community10

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

Recently: every ~30 days

Total

82

Last Release

76d ago

Major Versions

v0.15.39 → v1.0.02024-12-08

PHP version history (2 changes)v0.1.0PHP &gt;=7.2

v0.7.0PHP &gt;=7.1.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0944cd912c2e052b3940ec4a6a8732ea973a8c4a477df75a849b5ac5f0831b97?d=identicon)[TheNorthMemory](/maintainers/TheNorthMemory)

---

Top Contributors

[![TheNorthMemory](https://avatars.githubusercontent.com/u/1631685?v=4)](https://github.com/TheNorthMemory "TheNorthMemory (514 commits)")

---

Tags

openapiwechatpaywechatpay-apiv2wechatpay-apiv3interfaceswechatpayopenapi-chainable

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/iwechatpay-openapi/health.svg)

```
[![Health](https://phpackages.com/badges/iwechatpay-openapi/health.svg)](https://phpackages.com/packages/iwechatpay-openapi)
```

###  Alternatives

[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[zoujingli/wechat-developer

WeChat and Alipay Platform Development

1.6k136.9k14](/packages/zoujingli-wechat-developer)[php-heroku-client/php-heroku-client

A PHP client for the Heroku Platform API

24404.8k4](/packages/php-heroku-client-php-heroku-client)[firstred/postnl-api-php

PostNL REST API PHP Bindings

27610.2k1](/packages/firstred-postnl-api-php)[easyalipay/easyalipay

\[A\]Sync Chainable Alipay OpenAPI SDK for PHP

212.3k](/packages/easyalipay-easyalipay)[arbor-education/arbor-sdk-php

Arbor Education PHP SDK

116.8k](/packages/arbor-education-arbor-sdk-php)

PHPackages © 2026

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