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

ActiveLibrary[Payment Processing](/categories/payments)

johnxu/payment
==============

payment package

v0.1.1(6y ago)118PHPPHP &gt;=7.0.0

Since Jan 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xfjpeter/payment)[ Packagist](https://packagist.org/packages/johnxu/payment)[ Docs](https://www.johnxu.net)[ RSS](/packages/johnxu-payment/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (12)Used By (0)

\[toc\]

支付集合
====

[](#支付集合)

支付宝支付相关操作
---------

[](#支付宝支付相关操作)

### 安装方式

[](#安装方式)

```
composer reuqire johnxu/payment

```

### 已经开发完成接口

[](#已经开发完成接口)

1. app 支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/pay/app.php)
2. 电脑网站支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/pay/web.php)
3. H5 支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/pay/wap.php)
4. 当面付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/pay/face.php)
5. 即时转账，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/pay/app.php)
6. 取消订单，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/trade/cancel.php)
7. 关闭订单，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/trade/close.php)
8. 退款操作，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/trade/refund.php)
9. 统一收单线下交易查询，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/query/offline.php)
10. 统一收单交易退款查询，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/query/refund.php)
11. 查询转账订单接口，[demo](https://github.com/xfjpeter/payment/tree/master/demo/alipay/query/transfer.php)

微信支付相关操作
--------

[](#微信支付相关操作)

### 安装方式

[](#安装方式-1)

```
composer require johnxu/payment

```

### 已经开发完成接口

[](#已经开发完成接口-1)

1. 扫码支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/web.php)
2. app 支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/app.php)
3. 小程序支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/mini.php)
4. H5 支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/wap.php)
5. 企业转账到零钱，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/transfer.php)
6. 当面付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/face.php)
7. 微信公众号支付，[demo](https://github.com/xfjpeter/payment/tree/master/demo/wxpay/pay/mp.php)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Recently: every ~63 days

Total

11

Last Release

2248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76206417b6738c52b1e4deeef797c2f0e77a98d3a490bd4ffb4b1e9cdeb5398e?d=identicon)[johnxu](/maintainers/johnxu)

---

Top Contributors

[![xfjpeter](https://avatars.githubusercontent.com/u/16420972?v=4)](https://github.com/xfjpeter "xfjpeter (10 commits)")

---

Tags

paymentjohnxu

### Embed Badge

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

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

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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