PHPackages                             tu6ge/ysepay-sdk - 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. tu6ge/ysepay-sdk

ActiveLibrary[Payment Processing](/categories/payments)

tu6ge/ysepay-sdk
================

银盛支付的php SDK version 3.0 charset utf-8

0.1(6y ago)2474MITPHPPHP &gt;=7.0

Since Sep 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tu6ge/ysepay-php-sdk)[ Packagist](https://packagist.org/packages/tu6ge/ysepay-sdk)[ RSS](/packages/tu6ge-ysepay-sdk/feed)WikiDiscussions master Synced 2d ago

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

ysepay-php-sdk
==============

[](#ysepay-php-sdk)

银盛支付的php SDK

Requirement
-----------

[](#requirement)

1. PHP &gt;= 7.0
2. **[Composer](https://getcomposer.org)**
3. openssl 拓展

Install
-------

[](#install)

`composer require tu6ge/ysepay-sdk`

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";
$config = [
              'business_gate_cert'    => 'xxx',    //公钥路径
              'private_cert'          => 'xxx',           //私钥路径
              'partner_id'            => '',
              'seller_id'             => '',
              'seller_name'           => '',

              'pfxpassword'           => '',
              'merchant_code'         => '',

              'business_code'         => '',
              'log'   => [
                  'path' => __DIR__.'/info.log',
                  'name'  => 'ysepay',
              ]
$app = \YsepaySdk\Client($config);

//创建一个支付宝app支付的订单
$html = $app->alipay->create([
   'notify_url'            => 'http://www.xxx.com/return.php',
   'return_url'            => 'http://www.xxx.com/return.php',
   'out_trade_no'          => time(),
   'subject'               => 'test composer',
   'total_amount'          => 0.01,
], 'html');
echo $html;

//查询账户余额
$rs = $app->order->getBalance([
    'user_code'     => 'xxx',
    'user_name'     => 'xxx',
]);
print_r($rs);

//查询订单
$rs = $app->order->getOrder([
    "out_trade_no"  => '5998636703390937407',
    "trade_no"      => '01O190703750273951'
]);
print_r($rs);
```

License
-------

[](#license)

MIT

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

2439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96c9b3b5c4300583d0c78a813861abf9ad3d97a26607464f481054a58fbe4b7e?d=identicon)[tu6ge](/maintainers/tu6ge)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tu6ge-ysepay-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/tu6ge-ysepay-sdk/health.svg)](https://phpackages.com/packages/tu6ge-ysepay-sdk)
```

###  Alternatives

[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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