PHPackages                             yuhuo/alipay - 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. yuhuo/alipay

ActiveLibrary[Payment Processing](/categories/payments)

yuhuo/alipay
============

Alipay gateway for yuhuo payment processing library

v1.3.0(4y ago)013MITPHP

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yuhuo13625716863/yuhuo-alipay)[ Packagist](https://packagist.org/packages/yuhuo/alipay)[ Docs](https://github.com/yuhuo13625716863/alipay)[ RSS](/packages/yuhuo-alipay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

yuhuo支付宝 Alipay
===============

[](#yuhuo支付宝-alipay)

Usage
-----

[](#usage)

### Purchase (购买)

[](#purchase-购买)

```
/**
 * @var AopAppGateway $gateway
 */
$gateway = Omnipay::create('Alipay_AopPage');
$gateway->setSignType('RSA2'); // RSA/RSA2/MD5
$gateway->setAppId('the_app_id');
$gateway->setPrivateKey('the_app_private_key');
$gateway->setAlipayPublicKey('the_alipay_public_key');
$gateway->setReturnUrl('https://www.example.com/return');
$gateway->setNotifyUrl('https://www.example.com/notify');

/**
 * @var AopTradePagePayResponse $response
 */
$response = $gateway->purchase()->setBizContent([
    'subject'      => 'test',
    'out_trade_no' => date('YmdHis') . mt_rand(1000, 9999),
    'total_amount' => '0.01',
    'product_code' => 'FAST_INSTANT_TRADE_PAY',
])->send();

$url = $response->getRedirectUrl();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

1787d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/913904f34496aac05dee22e59a389047f37f21b0f617ac4b46365be7071f0d39?d=identicon)[yuhuo13625716863](/maintainers/yuhuo13625716863)

---

Top Contributors

[![yuhuo13625716863](https://avatars.githubusercontent.com/u/22465829?v=4)](https://github.com/yuhuo13625716863 "yuhuo13625716863 (3 commits)")

---

Tags

paymentgatewaypaymerchantpurchasealipay

### Embed Badge

![Health badge](/badges/yuhuo-alipay/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[lokielse/omnipay-global-alipay

Alipay global gateway for Omnipay payment processing library

3048.9k](/packages/lokielse-omnipay-global-alipay)

PHPackages © 2026

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