bakraj/databasewatcher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bakraj/databasewatcher

Composer 安装命令:

composer require bakraj/databasewatcher

包简介

Laravel Package to track and monitor DB requests

README 文档

README

Laravel package to monitor database request , exposing an API to collect the usage statistics or using the package builtin view to represent the data on graphs using Chartjs.

install:

Require this package with composer using the following command:

composer require bakraj/databasewatcher

After updating composer, add the service provider to the providers array in config/app.php

$ bakraj\DataBaseWatcher\DataBaseWatcherServiceProvider::class,

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Publishing views, assets and config:

1- publishing all:

$ php artisan vendor:publish --provider="bakraj\DataBaseWatcher\DataBaseWatcherServiceProvider"

2- publishing views:

$ php artisan vendor:publish --tag=databasewatcer.views --force

3- publishing assets:

$ php artisan vendor:publish --tag=databasewatcer.assets --force

API Documentation:

over all statistics:

calling the route

/databasewatcher/overall

expected result:

{
	"stats":
	{
		"2018-07-25":121
	}
}

specific day statistics:

calling the route:

/analyze/{date}

expected result:

{
	"stats":
	{
		"hour_request":
			{
			"1":3,"2":9
			},
		"total":12
	}
}

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固