PHPackages                             haxibiao/wallet - 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. haxibiao/wallet

ActiveProject[Payment Processing](/categories/payments)

haxibiao/wallet
===============

哈希表钱包和金融系统模块

123411PHP

Since Jan 4Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

haxibiao-wallet
===============

[](#haxibiao-wallet)

> haxibiao-wallet 是哈希表基于微信、支付宝、apple 开发的交易扩展包 欢迎大家提交代码或提出建议

安装步骤
----

[](#安装步骤)

1. `composer.json`改动如下： 在`repositories`中添加 vcs 类型远程仓库指向 `http://code.haxibiao.cn/packages/haxibiao-cms`
2. 执行`composer require haxibiao/cms`
3. 执行 `php artisan wallet:install`
4. 配置 env 文件以下几个参数值：

```
ALIPAY_PAY_APPID=
WECHAT_APPID=
WECHAT_SECRET=
WECHAT_PAY_KEY=
WECHAT_PAY_MCH_ID=

```

5. 配置`cert/alipay` 与 `cert/wechat` 相关支付配置信息，文件结构如下：

```
.
├── alipay
│   ├── pem
│   │   ├── private.pem
│   │   └── public.pem
│   ├── private_key
│   └── public_key
└── wechat
    ├── apiclient_cert.pem
    └── apiclient_key.pem

```

GQL 接口说明
--------

[](#gql-接口说明)

#### Query

[](#query)

用户充值记录

```
{
	recharges(user_id:8){
    data{
      id
      title
      amount
      status
      platform
    }
  }
}
```

#### Mutation

[](#mutation)

获取交易平台签名

```
mutation{
  getRechargeSignature(amount:0.01,platform:ALIPAY){
    ALIPAY
    WECHAT
  }
}
```

交易平台（platform）参数为支付宝，返回签名即为支付宝使用的签名，微信同理

请注意：微信和支付宝的签名格式不同

Api 接口说明
--------

[](#api-接口说明)

路由方式说明/api/pay/alipay-notifyany支付宝交易结束回调（常用）/api/pay/wechat-notifyany微信交易结束回调（常用）其他说明
----

[](#其他说明)

此包还在持续开发中，后续将引入 提现与兑换相关逻辑和模型，欢迎大家一起参与建设

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.8% 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/aeb8d51af85edddb5e917a684ab64740e6de80c109a0e5b84184b8fb7a097500?d=identicon)[ivanzhang2](/maintainers/ivanzhang2)

---

Top Contributors

[![wuxiuzhang](https://avatars.githubusercontent.com/u/70505297?v=4)](https://github.com/wuxiuzhang "wuxiuzhang (67 commits)")[![ivanzhang2](https://avatars.githubusercontent.com/u/13308603?v=4)](https://github.com/ivanzhang2 "ivanzhang2 (24 commits)")[![XiaoXinMing](https://avatars.githubusercontent.com/u/39290488?v=4)](https://github.com/XiaoXinMing "XiaoXinMing (14 commits)")[![caizhigang1997](https://avatars.githubusercontent.com/u/36915614?v=4)](https://github.com/caizhigang1997 "caizhigang1997 (6 commits)")[![yangliu9494](https://avatars.githubusercontent.com/u/40386628?v=4)](https://github.com/yangliu9494 "yangliu9494 (1 commits)")

### Embed Badge

![Health badge](/badges/haxibiao-wallet/health.svg)

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

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