PHPackages                             guanguans/dcloud-app-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. guanguans/dcloud-app-pay

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

guanguans/dcloud-app-pay
========================

DCloud App 支付 SDK

v1.2.2(6y ago)216[10 issues](https://github.com/guanguans/dcloud-app-pay/issues)MITPHPPHP &gt;=5.6.0

Since Nov 25Pushed 6y agoCompare

[ Source](https://github.com/guanguans/dcloud-app-pay)[ Packagist](https://packagist.org/packages/guanguans/dcloud-app-pay)[ RSS](/packages/guanguans-dcloud-app-pay/feed)WikiDiscussions master Synced yesterday

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

DCloud app 支付 SDK
=================

[](#dcloud-app-支付-sdk)

[![Build Status](https://camo.githubusercontent.com/32e7f642311a16db7f8f9c533e5a0713d50e295fd00cd8dc2223fe388536932e/68747470733a2f2f7472617669732d63692e6f72672f6775616e6775616e732f64636c6f75642d6170702d7061792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/guanguans/dcloud-app-pay)[![StyleCI](https://camo.githubusercontent.com/a8124f134e3269a13090f716d21b0f6cd18e651ef044fef21fb6315138c5e4a8/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135393031333835342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/159013854)[![Latest Stable Version](https://camo.githubusercontent.com/3ea9e014a8e67e54afe8ff6f1c75282d2d9f0776b5647b88a7a1afd182fb1332/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f64636c6f75642d6170702d7061792f762f737461626c65)](https://packagist.org/packages/guanguans/dcloud-app-pay)[![License](https://camo.githubusercontent.com/0707480f3aabd07dfa843bf5d427022aee07d2bad1fcc5630c385ac8cf5f82b7/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f64636c6f75642d6170702d7061792f6c6963656e7365)](https://packagist.org/packages/guanguans/dcloud-app-pay)

DCloud App 支付，基于 [H5P.Server/payment](https://github.com/dcloudio/H5P.Server/blob/master/payment) 修改。

安装
--

[](#安装)

```
$ composer require guanguans/dcloud-app-pay
```

使用
--

[](#使用)

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

use Guanguans\Alipay\Alipay;

$config = [
    'app_id'         => '', // 支付宝提供的 APP_ID
    'notify_url'     => '', // 支付宝异步通知地址
    'ali_public_key' => '', // 支付宝公钥，1行填写
    'private_key'    => '', // 自己的私钥，1行填写
];

$alipy = new Alipay($config);

$config_biz = [
    'out_trade_no' => time(),    // 订单号
    'total_amount' => '1',       // 订单金额，单位：元
    'subject'      => 'subject', // 订单商品标题
    'body'         => 'body',    // 订单商品内容
];

echo $alipy->pay($config_biz);
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~85 days

Total

9

Last Release

2377d ago

### Community

Maintainers

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

---

Top Contributors

[![guanguans](https://avatars.githubusercontent.com/u/22309277?v=4)](https://github.com/guanguans "guanguans (26 commits)")

---

Tags

alipaydcloudpaywechat-paysdkpayalipaywechatDCloud

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/guanguans-dcloud-app-pay/health.svg)

```
[![Health](https://phpackages.com/badges/guanguans-dcloud-app-pay/health.svg)](https://phpackages.com/packages/guanguans-dcloud-app-pay)
```

###  Alternatives

[yansongda/pay

可能是我用过的最优雅的 Alipay 和 WeChat 的支付 SDK 扩展包了

5.3k1.2M53](/packages/yansongda-pay)[yansongda/laravel-pay

专注 Alipay/WeChat/Unipay 的 laravel 支付扩展包

1.1k353.2k9](/packages/yansongda-laravel-pay)[yansongda/hyperf-pay

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

8959.8k1](/packages/yansongda-hyperf-pay)[guanguans/yii-pay

适配于 Yii 的 alipay 和 wechat 的支付扩展包

515.5k](/packages/guanguans-yii-pay)

PHPackages © 2026

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