定制 slavkovrn/yii2-logvisitor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

slavkovrn/yii2-logvisitor

最新稳定版本:1.0.1

Composer 安装命令:

composer require slavkovrn/yii2-logvisitor

包简介

The Yii2 extension to log site requests and draw charts of these requests progress by calendar dates.

README 文档

README

The Yii2 extension uses visualize.jQuery.js to draw progress charts of site requests logged by calendar dates.

Log visitor demo page.

Log visitor

Installation

The preferred way to install this extension is through composer.

Either run:

composer require slavkovrn/yii2-logvisitor

or add

"slavkovrn/yii2-logvisitor": "*"

to the require section of your composer.json file.

Usage

To make LogVisitorComponent log site requests

    1. add link to component in your config (in my case it's /config/web.php)
return [
    'components' => [
        'logvisitor' => [
            'class' => 'slavkovrn\logvisitor\LogVisitorComponent'
            'filterIp' => '127.0.0.1,213.87.',  /* comma separated substrings of IP  to be filtered of log in table , begining from first position  */
            'filterUri' => '/,debug',           /* comma separated substrings of URI to be filtered of log in table */
        ],
    ],
];
    1. add link to log site requests automatically
return [
	'bootstrap' => ['log', 'logvisitor'],
]; 

To draw charts of requests progress

    1. add link to LogVisitorModule in your config
return [
    'modules' => [
        'logvisitor' => [
            'class' => 'slavkovrn\logvisitor\LogVisitorModule',
        ],
    ],
]; 

and now you can see the charts of site requests in progress by calendar dates via http://yoursite.com/logvisitor url

write comments to admin

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固