PHPackages                             xybingbing/weixin\_pay\_sdk - 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. [Payment Processing](/categories/payments)
4. /
5. xybingbing/weixin\_pay\_sdk

ActiveLibrary[Payment Processing](/categories/payments)

xybingbing/weixin\_pay\_sdk
===========================

微信支付相关的所有接口

1.3(9y ago)129Apache-2.0PHPPHP &gt;=5.4.0

Since Mar 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/xybingbing/weixin_pay_sdk_package)[ Packagist](https://packagist.org/packages/xybingbing/weixin_pay_sdk)[ RSS](/packages/xybingbing-weixin-pay-sdk/feed)WikiDiscussions master Synced 4w ago

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

微信商户平台所以接口相关

1.安装

```
composer require xybingbing/weixin_pay_sdk

```

2.使用

```
require "vendor/autoload.php";

```

> 基本参数

```
$parameter=array(
	'appid'=>'', 	//微信ID
    'appsecret'=>'', //微信密钥
    'mch_id'=>'', //微信商户ID
    'paykey'=>'', //微信商户密钥
	'debug'=>true, //是否开启调试模式。关闭调试模式后 报错 会输出到weixin_log.txt
);

```

> 1. 微信公众号支付相关

```
$wxpay=new xybingbing\weixin_pay($parameter);		详细请看examples/wechat.php

```

> 2. APP微信支付相关

```
$wxpay=new xybingbing\weixin_app_pay($parameter);		详细请看examples/app.php

```

> 3. 扫码支付相关

```
$wxpay=new xybingbing\weixin_scancode_pay($parameter);		详细请看examples/scancode.php

```

> 4. 微信刷卡支付相关

```
$wxpay=new xybingbing\weixin_pay_card($parameter);		详细请看examples/card.php

```

> 5. 微信红包相关

```
$wxpay=new xybingbing\weixin_bonus($parameter);		详细请看examples/bonus.php

```

> 6. 微信代金券相关

```
$wxpay=new xybingbing\weixin_coupon($parameter);		详细请看examples/coupon.php

```

> 7. 企业付款相关

```
$wxpay=new xybingbing\weixin_payment($parameter);		详细请看examples/payment.php

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

4

Last Release

3353d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10228562?v=4)[xybingbing](/maintainers/xybingbing)[@xybingbing](https://github.com/xybingbing)

---

Top Contributors

[![xybingbing](https://avatars.githubusercontent.com/u/10228562?v=4)](https://github.com/xybingbing "xybingbing (9 commits)")

### Embed Badge

![Health badge](/badges/xybingbing-weixin-pay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/xybingbing-weixin-pay-sdk/health.svg)](https://phpackages.com/packages/xybingbing-weixin-pay-sdk)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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