PHPackages                             yqhcode/leshua - 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. yqhcode/leshua

ActiveLibrary[Payment Processing](/categories/payments)

yqhcode/leshua
==============

leshua pay sdk

1.0.1(4y ago)044MITPHPPHP &gt;=7.0.0

Since Jan 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yqhcode/leshua)[ Packagist](https://packagist.org/packages/yqhcode/leshua)[ RSS](/packages/yqhcode-leshua/feed)WikiDiscussions master Synced 1mo ago

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

Leshua Pay
==========

[](#leshua-pay)

乐刷聚合支付 PHP SDK

文件目录
----

[](#文件目录)

```
src/
  - Exceptions/ 异常类
  - Requests/
            - Appendix/ 数据服务
                      - Appendix.php 数据服务类：MccCode、地区、支行信息查询
                      - BaseAppendix.php 抽象数据服务类
            - Merchant/ 商户进件及配置相关
                      - BaseMerchant.php 抽象商户进件类
                      - Pictrue.php 文件上传请求类
                      - Register.php 商户进件类
            - Transaction/ 交易相关请求
                      - BasePay.php 抽象支付请求类，把两个支付接口共有的参数设置都放在这里
                      - CloseOrder.php 关闭订单请求类
                      - GetWxPayFaceAuthInfo.php 获取微信刷脸凭证
                      - QRPay.php 条码支付
                      - QueryRefund.php 退款查询
                      - QueryStatus.php 交易结果查询
                      - QueryUPUserId.php 银联云闪付，授权码获取用户ID
                      - QueryWXOpenId.php 微信，授权码查询用户openid
                      - Refund.php 退款
                      - UnifiedOrder.php 统一订单
            - BaseRequest.php 基础请求接口
            - Utils/ 工具类相关
                  - SignUtil.php 签名工具类，签名、验证相关具体逻辑都放在这里
                  - StrUtil.php 字符工具类，随机字符、请求流水号、xml 转 array
  - Config.php 配置类，需要灵活配置的参数相关
  - LeshuaClient.php SDK 客户端类，充当本 SDK 的客户端，把各请求类定义好的 URL 、参数、特殊 header 设置，组装发送出去，并返回结果.

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

1592d ago

### Community

Maintainers

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

---

Top Contributors

[![yqhcode](https://avatars.githubusercontent.com/u/94607849?v=4)](https://github.com/yqhcode "yqhcode (4 commits)")[![yangqinghua0128](https://avatars.githubusercontent.com/u/55058039?v=4)](https://github.com/yangqinghua0128 "yangqinghua0128 (2 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yqhcode-leshua/health.svg)

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

###  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)
