PHPackages                             ymzf/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. ymzf/pay

ActiveLibrary[Payment Processing](/categories/payments)

ymzf/pay
========

1.0.0(1y ago)018PHP

Since Feb 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ymzf/pay)[ Packagist](https://packagist.org/packages/ymzf/pay)[ RSS](/packages/ymzf-pay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

一鸣支付
====

[](#一鸣支付)

安装要求
----

[](#安装要求)

PHP 5.6.0 及更高版本

Composer
--------

[](#composer)

您可以通过 [Composer](http://getcomposer.org/) 安装绑定。运行以下命令：

```
composer require ymzf/pay
```

请使用 [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading) 的自动加载：

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

手动安装
----

[](#手动安装)

如果您不想使用 Composer，可以下载最新版本。然后单独使用 `Api.php`

```
require_once '..../Api.php';
```

依赖
--

[](#依赖)

环境需要以下扩展才能正常工作：

- [`curl`](https://secure.php.net/manual/en/book.curl.php), 不过如果您愿意，也可以使用自己的非curl客户端
- [`json`](https://secure.php.net/manual/en/book.json.php)

如果使用Composer，这些依赖项应该被自动处理。如果您手动安装，您需要确保这些扩展是可用的。

使用示例
----

[](#使用示例)

一般用法

```
$app_id = "应用ID";
$apiKey = "应用密钥";
$api = new Api($app_id, $apiKey);
$orderInfo = [
    'channel_id' => '通道ID',
    'merchant_order_no' => date('YmdHis') . mt_rand(1000, 9999), //商户订单号
    'order_amount' => '20.00', // 订单金额
    'return_url' => 'http://www.ymzf.org/return', // 同步回调地址
    'notify_url' => 'http://www.ymzf.org/notify', // 异步回调地址
];

### 创建订单
$result = $api->createOrder($orderInfo);

### 查询订单
$result = $api->queryOrder('系统订单号');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance43

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

459d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a762e99f963700485a59dfcb4f0e81ede040018d56a273b7c7369bc6a725327?d=identicon)[ymzf](/maintainers/ymzf)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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