PHPackages                             finance/reporting - 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. finance/reporting

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

finance/reporting
=================

Financial data reporting

1.1.3(1y ago)05MITPHP

Since May 6Pushed 1y ago1 watchersCompare

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

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

财务数据上报
------

[](#财务数据上报)

[thinkphp6.0的demo下载](https://gitee.com/thans/jwt-auth/attach_files/306748/download)

环境要求
----

[](#环境要求)

1. php ^7.0 || ^8.0
2. thinkphp ^6.0.0

安装
--

[](#安装)

第一步:

```
$ composer require finance/report
```

第二步:

```
$ php think finance:report init
```

第三步:

```
$ php think migrate:run
```

执行数据迁移命令,生成三个数据表,finance\_payment\_order,finance\_payment\_order\_branch,finance\_refund\_order

使用方式
----

[](#使用方式)

示例：

```
use finance\facade\Finance;

//保存支付订单数据
$result = Finance::addPaymentOrder($content, $message);//content参数为自行填写,message参数为微信支付成功回调的数据
//content 数据需包含:
// project 项目名称 最大长度 55 位字符串,
// order_time 下单时间,
// base_cost 基础成本金额(分),
//waste_cost 耗损成本金额(分),
//data_type 数据类型(1 单笔付款 2 批量付款 3 批量补单,不传该字段默认为1进行处理),
// batch_detail 合并支付详情	(data_type值为2或3时必传,具体描述参照下方字段说明),

//message 数据需包含:
//mch_id 微信商户号,
//transaction_id 微信交易号,
//out_trade_no 商户订单号,
//total_fee 交易金额(分),
//time_end 交易时间
//保存退款订单数据
$result = Finance::addRefundOrder($content, $message);//content参数为自行填写,message参数为微信退款成功回调的数据
//content 数据需包含:
// mch_id 商户号,
// project 项目名称 最大长度 55 位字符串,
// refund_time 退款时间,

//message 数据需包含:
//transaction_id 微信交易号,
//out_trade_no 商户订单号,
//refund_id 微信退款单号,
//refund_fee 退款金额(分)
//success_time 退款成功时间
```

上传命令：

```
$ php think finance:report payment  //执行支付订单上传
```

```
$ php think finance:report refund  //执行退款订单上传
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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 ~0 days

Total

4

Last Release

377d ago

### Community

Maintainers

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

---

Top Contributors

[![chao211](https://avatars.githubusercontent.com/u/28331033?v=4)](https://github.com/chao211 "chao211 (7 commits)")

### Embed Badge

![Health badge](/badges/finance-reporting/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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