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 2w 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 26% 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

2487d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M19.5k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[google/cloud

Google Cloud Client Library

1.2k16.7M57](/packages/google-cloud)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M110](/packages/google-cloud-core)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M17](/packages/pantheon-systems-terminus)

PHPackages © 2026

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