PHPackages                             hsk99/transfer-statistics - 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. hsk99/transfer-statistics

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

hsk99/transfer-statistics
=========================

TransferStatistics

v2.1.2(3y ago)7133212[5 issues](https://github.com/hsk99/transfer-statistics/issues)MITJavaScriptPHP &gt;=7.2

Since Dec 23Pushed 3y ago3 watchersCompare

[ Source](https://github.com/hsk99/transfer-statistics)[ Packagist](https://packagist.org/packages/hsk99/transfer-statistics)[ Docs](http://hsk99.com.cn)[ RSS](/packages/hsk99-transfer-statistics/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (8)Dependencies (15)Versions (9)Used By (0)

TransferStatistics
==================

[](#transferstatistics)

> TransferStatistics 使用[webman](https://github.com/walkor/webman)开发的一个应用监控系统，用于查看应用调用记录、请求量、调用耗时、调用分析等。

> 系统使用 `HTTP` 接收上报数据；使用 `Redis` 进行数据汇总统计；使用 `MySql` 存储统计数据和上报信息

所需环境
====

[](#所需环境)

PHP版本不低于7.2，并安装 Redis 拓展

安装
==

[](#安装)

composer安装
----------

[](#composer安装)

创建项目

`composer create-project hsk99/transfer-statistics`

下载安装
----

[](#下载安装)

1、下载 或 `git clone https://github.com/hsk99/transfer-statistics`

2、执行命令 `composer install`

导入数据库
-----

[](#导入数据库)

- sql文件位置：`database/transfer.sql`

配置修改
----

[](#配置修改)

1、修改文件 `config/redis.php` 设置 Redis

2、修改文件 `config/server.php` 设置 HTTP

3、修改目录 `config/plugin/webman/redis-queue/` 设置 RedisQueue 相关信息

4、修改文件 `config/thinkorm.php` 设置 MySql 相关信息

运行
==

[](#运行)

执行命令 `php start.php start`

查看统计
====

[](#查看统计)

- 浏览器访问 `http://ip地址:8788`
- 默认账号：`admin`
- 默认密码：`admin888`
- 相关信息可在 `系统管理--系统设置` 中进行设置

上报数据
====

[](#上报数据)

- [webman](https://github.com/walkor/webman) 使用 [webman-statistic](https://github.com/hsk99/webman-statistic) 插件
- 其他框架使用，TP6中间件示例

```
