PHPackages                             bain2018/yunpay - 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. bain2018/yunpay

ActiveLibrary

bain2018/yunpay
===============

云账户综合服务平台 API 调用封装

v1.1.1(11mo ago)0533↓100%MITPHPPHP &gt;=8.0

Since Apr 16Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/bain2018/yunpay)[ Packagist](https://packagist.org/packages/bain2018/yunpay)[ Docs](https://github.com/bain2018/yunpay)[ RSS](/packages/bain2018-yunpay/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

composer require putyy/yun-pay:dev-master
-----------------------------------------

[](#composer-require-putyyyun-paydev-master)

yun-pay
=======

[](#yun-pay)

云账户综合服务平台(//[www.yunzhanghu.com/](http://www.yunzhanghu.com/)) api调用相关封装

### 本包主要调用方式分为两种

[](#本包主要调用方式分为两种)

> 1.传入参数对象调用服务

```
require_once __DIR__ . '/bootstrap.php';

/**
 * 下单
 * 不同平台不同 data
 * 自行查阅 WGCYunPay\Data\Pay 相关data类
 */
$AliPayData = new \WGCYunPay\Data\Pay\AliPayData();
$AliPayData->order_id   = '2019002156137016397187466';
$AliPayData->real_name  = 'LW放下';
$AliPayData->id_card    = '500781598308210373';
$AliPayData->pay        = '1.00';
$AliPayData->notes      = '这只是一个测试';
$AliPayData->pay_remark = '这只是一个打款备注';
$AliPayData->card_no    = '18225298987';

$GoPay = new \WGCYunPay\Service\PayService($config, $AliPayData);
$res   = $GoPay->query();
var_dump($res);

```

> 2.链式操作调用

```
require_once __DIR__ . '/bootstrap.php';

//var_dump($config);
// 查询订单
$order = new \WGCYunPay\Service\OrderService($config);
$res   = $order
       ->setOrderId('2019002156137016ss3971231341211')
       ->setChannel('支付宝')
       ->query();
var_dump($res);

```

> 具体看tests目录的例子

[个人博客](http://www.putyy.com) 欢迎来访

---

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance52

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

335d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bain2018-yunpay/health.svg)

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

PHPackages © 2026

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