PHPackages                             zhana0/umpay - 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. zhana0/umpay

ActiveLibrary[Payment Processing](/categories/payments)

zhana0/umpay
============

联动支付第三方支付类

1.0(8y ago)315MITPHPPHP &gt;=5.4.0

Since Nov 17Pushed 8y agoCompare

[ Source](https://github.com/zhana0/umpay)[ Packagist](https://packagist.org/packages/zhana0/umpay)[ RSS](/packages/zhana0-umpay/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

umpay
=====

[](#umpay)

联动支付类
=====

[](#联动支付类)

test.php 为测试文件 notify.php 为测试异步通知文件

使用前需要在 src/Umpay.php 文件中修改mer\_id的值为自己的商户号；将自己的私钥，与平台的证书放入src/api/cert目录中，并修改src/api/config.php文件中privatekey,platcert的值

composer require zhana0/umpay

use Ump\\Umpay;

$ump = new Umpay();//构造方法默认参数为req\_front\_page\_pay接口类型

$ump-&gt;set\_pay\_type();//此方法可以设置支付方式，默认参数$pay\_type = 'B2CDEBITBANK', $payment\_mode = ''，此方法在构造方法中已执行一次

$ump-&gt;set\_order\_id(date('Ymd',time()).uniqid());//设置订单号

$ump-&gt;set\_mer\_date(time());//设置订单日期

$ump-&gt;set\_order\_amount(1);//设置订单金额

$ump-&gt;set\_goods\_inf('测试商品');//设置商品名称（扫码支付必填）

header("Location:" . $ump-&gt;get\_request\_url());//生成链接，并跳转

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3147d ago

### Community

Maintainers

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

---

Top Contributors

[![zhana0](https://avatars.githubusercontent.com/u/5386734?v=4)](https://github.com/zhana0 "zhana0 (16 commits)")

### Embed Badge

![Health badge](/badges/zhana0-umpay/health.svg)

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

###  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)
