PHPackages                             nekom/qq-wallet-money - 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. nekom/qq-wallet-money

ActiveLibrary[Payment Processing](/categories/payments)

nekom/qq-wallet-money
=====================

qq小程序打款类，qq钱包打款适用，封装了加密算法，发送，处理逻辑

1.0.0(6y ago)210MITPHPPHP &gt;=5.4

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/LikeNeko/qq-wallet-money)[ Packagist](https://packagist.org/packages/nekom/qq-wallet-money)[ Docs](https://github.com/LikeNeko/qq-wallet-money/)[ RSS](/packages/nekom-qq-wallet-money/feed)WikiDiscussions master Synced yesterday

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

安装
--

[](#安装)

`composer require nekom/qq-wallet-money:dev-master`

Demo
----

[](#demo)

```
$key  = __DIR__.'/cert/key.pem';
$cert = __DIR__.'/cert/cert.pem';

$obj = new \QQ\QQPay([
    'momo'           => '提现啦！',
    'appid'          => '小程序appid',
    'mch_id'         => '',
    'op_user_id'     => '',
    'op_user_passwd' => md5('')
]);
// 设置好商户的key
$obj->setKey('');
// 设置key.pem证书路径
$obj->setKeyPath($key);
// 设置cert.pem证书路径
$obj->setCertPath($cert);

// 设置打款金额 单位元
$obj->price(1.00);
// 设置打款金额的另一种写法，和文档需要的数值同步
$obj->priceTo(100);

$obj->openid('123');

$out = 123;

// 设置成功时的回调
$obj->success(function ($info) use ($out) {
    // 打款成功时会走这里
    var_dump($info);
    // $info 是qq打款成功的返回结果
    // $out 是外部的参数，可以传进来
    var_dump($out);
});
$obj->error(function ($info) use ($out) {
    // 打款失败时会走这里
    var_dump($info);
    // $info 是qq打款失败的返回结果
    // $out 是外部的参数，可以传进来
    var_dump($out);
});

// 另一种写法
$success = function ($info) use ($out) {
    // 打款成功时会走这里
    var_dump($info);
    // $info 是qq打款成功的返回结果
    // $out 是外部的参数，可以传进来
    var_dump($out);
};
$error = function ($info) use ($out) {
    // 打款失败时会走这里
    var_dump($info);
    // $info 是qq打款失败的返回结果
    // $out 是外部的参数，可以传进来
    var_dump($out);
};

// 这样也是可以的
$obj->success($success);
$obj->error($error);

// 你还可以这样写
$status = $obj->send($success,$error);
// $status 返回 'ok'  或者 $status => 'no'

// 只监听成功的回调
$status = $obj->send(function ($info) use ($out) {
    // 打款成功时会走这里
    var_dump($info);
    // $info 是qq打款成功的返回结果
    // $out 是外部的参数，可以传进来
    var_dump($out);
});

// 每次send返回的所有信息
$obj->result;

// 也可以手动设置配置
$obj->config['openid'] = 123;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

2351d ago

### Community

Maintainers

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

---

Top Contributors

[![LikeNeko](https://avatars.githubusercontent.com/u/31497234?v=4)](https://github.com/LikeNeko "LikeNeko (5 commits)")

---

Tags

xiao-cheng-xu

### Embed Badge

![Health badge](/badges/nekom-qq-wallet-money/health.svg)

```
[![Health](https://phpackages.com/badges/nekom-qq-wallet-money/health.svg)](https://phpackages.com/packages/nekom-qq-wallet-money)
```

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