PHPackages                             lisao/aggregate-payment - 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. lisao/aggregate-payment

ActiveLibrary[Payment Processing](/categories/payments)

lisao/aggregate-payment
=======================

1.0.6(8y ago)6251MITPHPPHP &gt;=5.6

Since Feb 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yuanxin32323/aggregate-payment)[ Packagist](https://packagist.org/packages/lisao/aggregate-payment)[ RSS](/packages/lisao-aggregate-payment/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)DependenciesVersions (8)Used By (0)

aggregate-payment
=================

[](#aggregate-payment)

聚合支付

该项目集成支付宝、微信支付接口 提供更便利的调用方式

安装方式
----

[](#安装方式)

```
composer require lisao/aggregate-payment

```

### 创建微信支付

[](#创建微信支付)

```
$pay_config = [
  'app_id'=>'',       //微信公众号开发者app_id
  'mch_id'=>'',       //商户号
  'key'=>'',          //商户秘钥
  'sign_type=>'MD5',  //签名方式
  'sand_box'=false,   //是否沙箱环境
];

//创建微信支付配置
$wx_config = new \LisaoPayment\WxPay\WxPayConfig($pay_config['app_id'], $pay_config['mch_id'], $pay_config['key'], $pay_config['sign_type'], $pay_config['sand_box']);

//实例化微信支付api
$wx_api = new \LisaoPayment\WxPay\WxPayApi($wx_config);

//创建订单配置
$order_config = new \LisaoPayment\WxConfig\CreateOrderConfig();
$order_config->set_out_trade_no('');//商户订单
$order_config->set_notify_url('');//回调地址
$order_config->set_body('');//订单详情
$order_config->set_nonce_str('');//随机字符串
$order_config->set_trade_type('JSAPI');//支付类型
$order_config->set_total_fee(1);//支付金额，单位分

//提交订单
try {
    $wx_order = $wx_api->create_order($order_config);
    $prepay_id = $wx_order['prepay_id'];
    print_r($wx_order);exit;
} catch (\LisaoPayment\WxPay\WxPayException $ex) {
    echo '订单创建失败';
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Total

7

Last Release

2956d ago

### Community

Maintainers

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

---

Top Contributors

[![yuanxin32323](https://avatars.githubusercontent.com/u/17340200?v=4)](https://github.com/yuanxin32323 "yuanxin32323 (116 commits)")

---

Tags

alipaywechataggregate-payment

### Embed Badge

![Health badge](/badges/lisao-aggregate-payment/health.svg)

```
[![Health](https://phpackages.com/badges/lisao-aggregate-payment/health.svg)](https://phpackages.com/packages/lisao-aggregate-payment)
```

###  Alternatives

[yansongda/pay

可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了

5.3k1.2M53](/packages/yansongda-pay)[yansongda/laravel-pay

专注 Alipay/WeChat/Unipay 的 laravel 支付扩展包

1.1k353.2k9](/packages/yansongda-laravel-pay)[yansongda/hyperf-pay

可能是基于 hyperf 的最优雅的支付宝、微信、银联支付 SDK 了

8959.8k1](/packages/yansongda-hyperf-pay)[guanguans/yii-pay

适配于 Yii 的 alipay 和 wechat 的支付扩展包

515.5k](/packages/guanguans-yii-pay)

PHPackages © 2026

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