yii2-logvisitor Log site requests component and draw charts of these requests module for Yii 2.0 Framework

Log site requests component and draw charts of these requests module for Yii 2.0 Framework

  1. Installation
  2. Usage
  3. Resources

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

I. 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 */
        ],
    ],
];

II. add link to log site requests automatically

return [
	'bootstrap' => ['log', 'logvisitor'],
]; 

To draw charts of requests progress

III. 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

Resources

1 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Viacheslav Kolesnikov
Created on: Aug 22, 2017
Last updated: 7 years ago

Related Extensions