PHPackages                             nahuomall/xrtpay - 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/xrtpay

ActiveLibrary[API Development](/categories/api)

nahuomall/xrtpay
================

Xrt Pay API SDK for PHP

v1.1.0(2y ago)056Apache-2.0PHPPHP &gt;=8.0

Since Dec 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nahuoMall/xrtPay)[ Packagist](https://packagist.org/packages/nahuomall/xrtpay)[ RSS](/packages/nahuomall-xrtpay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (7)Used By (0)

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

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

Installing
----------

[](#installing)

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

Usage
-----

[](#usage)

```
        // $obj = new \Xmo\Api\Wechat();
        // or
        $obj = \Hyperf\Support\make(\Xmo\Api\Wechat::class)

        $obj->setMchId('你的商户ID');
        $obj->setAppsecret('你的秘钥');
        // 小程序
        $res =$obj->mini->createOrder([]);
        // app
        $res =$obj->app->createOrder([]);
        // 扫码
        $res =$obj->micropay->createOrder([]);
        // 网页
        $res =$obj->wap->createOrder([]);

        var_dump($res);
```

更新日志：

1.修复php8下，因为强类型返回参数报错问题 2.增加hyperf 协程 Guzzle client 客户端 3.修复部分bug 4.重新设计sdk架构 5.处理替换curl

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

6

Last Release

884d ago

### Community

Maintainers

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

---

Tags

sdkhyperfxrt

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[mineadmin/mineadmin

Quickly build a background management system for web applications

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

飞书SDK

2712.4k](/packages/limingxinleo-feishu)

PHPackages © 2026

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