1. Go to this page and download the library: Download slavkovrn/yii2-logvisitor library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
slavkovrn / yii2-logvisitor example snippets
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 */
],
],
];