PHPackages                             nahuomall/unionpay - 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. nahuomall/unionpay

ActiveLibrary[API Development](/categories/api)

nahuomall/unionpay
==================

Union Pay API SDK for PHP

1.4.5(1mo ago)0479Apache-2.0PHPPHP &gt;=8.0

Since Apr 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/takemall11/unionPay)[ Packagist](https://packagist.org/packages/nahuomall/unionpay)[ RSS](/packages/nahuomall-unionpay/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (26)Versions (30)Used By (0)

适配hyperf的聚合支付平台SDK
==================

[](#适配hyperf的聚合支付平台sdk)

Installing
----------

[](#installing)

```
$ composer require nahuomall/unionpay -vvv
```

Usage
-----

[](#usage)

```
        $obj = \Hyperf\Support\make(\UnionPay\Api\Wechat::class)

        $obj->setMchId('你的商户ID');
        // app
        $res =$obj->app->createOrder([]);

        var_dump($res);
```

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance91

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84% 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 ~30 days

Recently: every ~39 days

Total

26

Last Release

42d ago

### Community

Maintainers

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

---

Top Contributors

[![sinceleo](https://avatars.githubusercontent.com/u/36785096?v=4)](https://github.com/sinceleo "sinceleo (21 commits)")[![fzydjh](https://avatars.githubusercontent.com/u/86273955?v=4)](https://github.com/fzydjh "fzydjh (2 commits)")[![Crazypeak](https://avatars.githubusercontent.com/u/37556409?v=4)](https://github.com/Crazypeak "Crazypeak (1 commits)")[![nahuoMall](https://avatars.githubusercontent.com/u/152833351?v=4)](https://github.com/nahuoMall "nahuoMall (1 commits)")

---

Tags

sdkunionhyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nahuomall-unionpay/health.svg)

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

###  Alternatives

[mineadmin/mineadmin

Quickly build a background management system for web applications

1.2k2.1k](/packages/mineadmin-mineadmin)[limingxinleo/feishu

飞书SDK

2814.2k](/packages/limingxinleo-feishu)

PHPackages © 2026

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