PHPackages                             putyy/yun-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. [API Development](/categories/api)
4. /
5. putyy/yun-pay

ActiveLibrary[API Development](/categories/api)

putyy/yun-pay
=============

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

1.1.5(5mo ago)122.2k5MITPHPPHP ^7.2 || ^8.0

Since Aug 22Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/putyy/yun-pay)[ Packagist](https://packagist.org/packages/putyy/yun-pay)[ Docs](https://github.com/putyy/yun-pay.git)[ RSS](/packages/putyy-yun-pay/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (8)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

48

—

FairBetter than 95% of packages

Maintenance71

Regular maintenance activity

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

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

Recently: every ~338 days

Total

7

Last Release

163d ago

PHP version history (4 changes)v1.0PHP ^7.0

1.1.0PHP ^7.2

1.1.1PHP &gt;=7.2

1.1.4PHP ^7.2 || ^8.0

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/putyy-yun-pay/health.svg)

```
[![Health](https://phpackages.com/badges/putyy-yun-pay/health.svg)](https://phpackages.com/packages/putyy-yun-pay)
```

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k186.9M875](/packages/google-apiclient)[stripe/stripe-php

Stripe PHP Library

4.0k139.3M411](/packages/stripe-stripe-php)[webonyx/graphql-php

A PHP port of GraphQL reference implementation

4.7k75.4M270](/packages/webonyx-graphql-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k90.6M248](/packages/twilio-sdk)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k52.7M205](/packages/friendsofsymfony-jsrouting-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.3M170](/packages/knplabs-github-api)

PHPackages © 2026

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