PHPackages                             xiaohang/qqpay - 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. xiaohang/qqpay

ActiveLibrary[Payment Processing](/categories/payments)

xiaohang/qqpay
==============

PHP实现QQ钱包支付，易上手，操作简单。

10PHP

Since Jul 19Pushed 4y agoCompare

[ Source](https://github.com/xiaohang2020/qqpay)[ Packagist](https://packagist.org/packages/xiaohang/qqpay)[ RSS](/packages/xiaohang-qqpay/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

安装
--

[](#安装)

```
composer require xiaohang/qqpay
```

代码演示
----

[](#代码演示)

```
$qqArr = [
    "mch_id"     => $qqPayInfo['qqpay_mchid'],//商户号
    "notify_url" => $request->domain().url("Palymat/test"),//异步通知回调地址
    "key"        => $qqPayInfo['qqpay_key'],//商户key
];
$param = [
    "out_trade_no"  =>  trade_no(),// 订单号
    "trade_type"    =>  "NATIVE",// 固定值
    "total_fee"     =>  $info['moneys'],// 单位为分
    "body"          =>  $info['title'],//订单标题
];
//实例化
$qq      = new \qqpay\QQPay($qqArr);
//下单操作
$unified = $qq->unifiedOrder($param);
if($unified["return_code"] == "SUCCESS" &&  $unified["result_code"] == "SUCCESS")
{
  //订单逻辑实现
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ca14c574f1e88d7c8dc649daac00ad2b03e353ff49ba38538f0eb79b8a45fdb?d=identicon)[herman-hang](/maintainers/herman-hang)

---

Top Contributors

[![herman-hang](https://avatars.githubusercontent.com/u/61196516?v=4)](https://github.com/herman-hang "herman-hang (7 commits)")

---

Tags

payphpqqpay

### Embed Badge

![Health badge](/badges/xiaohang-qqpay/health.svg)

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

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