PHPackages                             masterton/alipay-sdk-php - 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. masterton/alipay-sdk-php

ActiveLibrary[Payment Processing](/categories/payments)

masterton/alipay-sdk-php
========================

Alipay SDK for PHP

1.0.1(8y ago)0116MITPHPPHP &gt;=5.5.0

Since Apr 13Pushed 8y agoCompare

[ Source](https://github.com/Masterton/alipay-sdk-php)[ Packagist](https://packagist.org/packages/masterton/alipay-sdk-php)[ Docs](https://docs.open.alipay.com/54/103419/)[ RSS](/packages/masterton-alipay-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Alipay SDK PHP
==============

[](#alipay-sdk-php)

```
require __DIR__ . '/../vendor/autoload.php';

// use Alipay\AopSdk;

$init = new Alipay\AopSdk;

$aop = new AopClient;
$aop->gatewayUrl = 'https://openapi.alipaydev.com/gateway.do';
$aop->appId = '请填写APPID';
$aop->rsaPrivateKey = '请填写商户私钥';
$aop->apiVersion = '1.0';
$aop->signType = 'RSA2';
$aop->postCharset= 'utf-8';
$aop->format='json';
$request = new AlipayTradePagePayRequest();
$request->setReturnUrl('请填写您的页面同步跳转地址');
$request->setNotifyUrl('请填写您的异步通知地址');
$request->setBizContent('{"product_code":"FAST_INSTANT_TRADE_PAY","out_trade_no":"20150320010101002","subject":"Iphone6 16G","total_amount":"0.01","body":"Iphone6 16G"}');

//请求
$result = $aop->pageExecute($request);

echo $result;

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50cd3ef9e919aa50829040b6039df8bd443afad13d6d8246a18266aeab2e73a8?d=identicon)[Masterton](/maintainers/Masterton)

---

Top Contributors

[![Masterton](https://avatars.githubusercontent.com/u/22693932?v=4)](https://github.com/Masterton "Masterton (2 commits)")

---

Tags

sdkalipay

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/masterton-alipay-sdk-php/health.svg)

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

###  Alternatives

[riverslei/payment

支付宝支付、微信支付、招商一网通支付php SDK。方便快速接入，最完整的开源支付 php sdk

2.4k155.5k1](/packages/riverslei-payment)

PHPackages © 2026

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