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

ActiveLibrary[Payment Processing](/categories/payments)

xudongyss/alipay
================

1.0.0(5y ago)04PHP

Since Nov 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xudongyss/alipay)[ Packagist](https://packagist.org/packages/xudongyss/alipay)[ RSS](/packages/xudongyss-alipay/feed)WikiDiscussions main Synced yesterday

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

支付宝SDK
======

[](#支付宝sdk)

支付宝新版SDK [Alipay Easy SDK](https://github.com/alipay/alipay-easysdk) 未涉及到的接口

\[TOC\]

安装
--

[](#安装)

```
composer require xudongyss/alipay

```

快速使用
----

[](#快速使用)

### 初始化

[](#初始化)

```
require_once 'vendor/autoload.php';

use XuDongYss\AliPay\Pay;

$appId = '';
/* 应用私钥 */
$merchantPrivateKey = '';
/* 支付宝公钥 */
$alipayPublicKey = '';

Pay::init($appId, $merchantPrivateKey, $alipayPublicKey);
```

### 单笔转账

[](#单笔转账)

```
/* 商户端的唯一订单号, 对于同一笔转账请求，商户需保证该订单号唯一 */
$out_biz_no = '';
/* 订单总金额，单位为元m 精确到小数点后两位, 产品取值范围[0.1,100000000] */
$trans_amount = 1;
/* 收款方唯一标识 */
$identity = '';
/* 收款方真实姓名 */
$name = '';
/* 可选：转账业务的标题, 用于在支付宝用户的账单里显示 */
$order_title = '';
/* 可选：收款方标识类型, ALIPAY_LOGON_ID 支付宝登录号，支持邮箱和手机号格式(默认值), ALIPAY_USER_ID 支付宝的会员ID，默认值：ALIPAY_LOGON_ID */
$identity_type = '';
Pay::fundTransUniTransfer($out_biz_no, $trans_amount, $identity, $name, $order_title, $identity_type);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

1992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f89328b21f1a0ff093d7c8df84f784af3cdd9c81c016362a65eb98dac4634fe?d=identicon)[xudongyss](/maintainers/xudongyss)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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