amylashley/traffic-logger 问题修复 & 功能扩展

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

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

amylashley/traffic-logger

Composer 安装命令:

composer require amylashley/traffic-logger

包简介

:package_description

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Laravel package that will log certain traffic data to a MySQL database. This package relies on the Eloquent ORM which is included with Laravel.

Install

######Via Composer

$ composer require amylashley/traffic-logger

Add ServiceProvider to app.php

AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider::class,

Publish config and migration to your app:

php artisan vendor:publish --provider="AmyLashley\TrafficLogger\App\Providers\TrafficLoggerServiceProvider"

######Migrate the database. You can change the database table that the logger users by update the table-name variable in the trafficlog.php config file.

php artisan migrate

######Add Middleware to your app\Http\Kernel.php in the global middleware array:

\AmyLashley\TrafficLogger\App\Http\Middleware\LogRequest::class,

##Configuration

The following can be configured in trafficlog.php:

-table-name: change the name of the database table that TrafficLogger will use. The default value is "log" -impersonator: If your system uses impersonation, and you'd like to capture the id of the impersonator, you'll need to add this functionality to your system: add a session variable and populate it when your system authenticates the user being impersonated. Then you can use this variable in TrafficLogger. The default value is "auth_imitator".

Usage

You can view your traffic reports at /admin/traffic-logger/report

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email alashley@amherst.edu instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固