PHPackages                             sxqibo/fast-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sxqibo/fast-wallet

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sxqibo/fast-wallet
==================

钱包公共模块，适用于thinkphp6以上框架

v1.0.2(2y ago)0116MITPHPPHP &gt;=7.4

Since Sep 22Pushed 2y ago2 watchersCompare

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

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

fastWallet
==========

[](#fastwallet)

极速钱包模块儿

安装说明
----

[](#安装说明)

`composer require sxqibo/fast-wallet`

备注：

> 1. 安装后会自动把database目录下的文件复制到项目对应的database目录下
> 2. 执行php think migrate:run 生成数据表
> 3. 执行 php think seed:run -s InitWalletAccountSeeder 生成钱包相关初始数据

使用说明
----

[](#使用说明)

```
$tradeAmount = 2.1;
$tradInfo = [
    'trade_title'   => '测试',
    'memo'          => '测试',
    'trade_amount'  => $tradeAmount,
    'business_type' => 1,
    'pay_type'      => 1,
    'user_id'       => 1,
];

$fromUserId = 1;
$fromRole   = 'U';
$toRole     = 'A';

$fromAccountId = ''; // 来源账户ID
$toAccountId   = ''; // 去向账户ID
$tenantId = '226ba257-d398-40d1-980b-2081598a8898';
$tenantPre = ''; // 可为空

$walletService = new WalletService($tenantId,$tenantPre);
$formWallet    = $walletService->saveWallet('-' . $tradeAmount, $fromAccountId, $fromUserId, $fromRole);
$toWallet      = $walletService->saveWallet($tradeAmount, $toAccountId, $tenantId, $toRole);

// $model => 对应的业务模型
// $model => 对应的模型类路径
$walletService->saveWalletFlows($formWallet, $toWallet, $tradInfo, $model, $modelClass);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

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

Every ~40 days

Total

3

Last Release

882d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f32e92c7e68c3d0af13677702b745fea90913ed6173f1a0c9506f0d25a50ebe?d=identicon)[hongweizhiyuan](/maintainers/hongweizhiyuan)

---

Top Contributors

[![hongweizhiyuan](https://avatars.githubusercontent.com/u/2313822?v=4)](https://github.com/hongweizhiyuan "hongweizhiyuan (2 commits)")

### Embed Badge

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

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)

PHPackages © 2026

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