PHPackages                             min-radish/php-ali-pay - 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. min-radish/php-ali-pay

ActiveLibrary[Payment Processing](/categories/payments)

min-radish/php-ali-pay
======================

PHP对支付宝API的调用

v1.0(6y ago)020MITPHPPHP &gt;=5.0.0

Since Jan 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MinRadish/radish-php-ali-pay)[ Packagist](https://packagist.org/packages/min-radish/php-ali-pay)[ RSS](/packages/min-radish-php-ali-pay/feed)WikiDiscussions master Synced today

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

支付宝接口调用封装
=========

[](#支付宝接口调用封装)

*需自定义一个类并继承 Radish\\AliPay\\AliPay 自定义配置参数*

- PC网站支付,WAP网站支付,扫码支付,退款

### 支付宝支付-配置项

[](#支付宝支付-配置项)

```
[
    'url' => '',
    'signPattern' => '',
    'appId' => '',
    'rsaPrivateKey' => '',
    'rsaPublicKey' => '',
    'certPublicKey' => '',
    'resKey' => '',
    'signType' => '',
]

```

- 参数说明

字段说明url网关signPattern秘钥方式 1:文件，2:字符串appId支付宝分配给开发者的应用IDrsaPrivateKeyrsa私钥证书(应用私钥)rsaPublicKeyrsa公钥证书(应用公钥)certPublicKey支付宝公钥resKeyAES密钥signType生成验签方式-默认(RSA2)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

2318d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/354ed9bfa439a57b040570fe37efa954208038eeb19a3e8f5906498ca07d1d62?d=identicon)[PerfectMM](/maintainers/PerfectMM)

---

Top Contributors

[![MinRadish](https://avatars.githubusercontent.com/u/22492914?v=4)](https://github.com/MinRadish "MinRadish (17 commits)")

---

Tags

alipaypaypaymentphpphppayALITool Class

### Embed Badge

![Health badge](/badges/min-radish-php-ali-pay/health.svg)

```
[![Health](https://phpackages.com/badges/min-radish-php-ali-pay/health.svg)](https://phpackages.com/packages/min-radish-php-ali-pay)
```

###  Alternatives

[lokielse/omnipay-wechatpay

Wechat gateway for Omnipay payment processing library

329224.5k7](/packages/lokielse-omnipay-wechatpay)[yansongda/hyperf-pay

可能是基于 hyperf 的最优雅的支付宝、微信、银联支付 SDK 了

8959.8k1](/packages/yansongda-hyperf-pay)

PHPackages © 2026

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