dev-master
9999999-devAnalyzer plugin for CakePHP
The Requires
- php >=5.4.16
- cakephp/cakephp ~3.1
The Development Requires
Analyzer plugin for CakePHP
This Analyzer Plugin is a plugin that tracks and reports website traffic., (*1)
You can install this plugin into your CakePHP application using composer., (*2)
The recommended way to install composer packages is:, (*3)
composer require cakemanager/cakephp-analyzer:dev-master
Now load the plugin via your shell:, (*4)
$ bin/cake plugin load -b -r Analyzer
Or put the following in your config/bootstrap.php
:, (*5)
Plugin::load('Analyzer', ['bootstrap' => true, 'routes' => true]);
Run the migrations:, (*6)
$ bin/cake migrations migrate -p Analyzer
From now on all requests will be reported!, (*7)
You can ignore to register request by putting the following code in your config/bootstrap.php
:, (*8)
Configure::write('Analyzer.Ignore.key', [ 'plugin' => 'DebugKit' 'controller' => 'UsersController', 'action' => 'index', 'prefix' => 'admin', ]);
So, for example; this code will ignore all DebugKit
requests:, (*9)
Configure::write('Analyzer.Ignore.debug_kit', [ 'plugin' => 'DebugKit' ]);
The RequestsTable
has the following finders:, (*10)
Set start- and end-date:, (*11)
$query->find('Between', [ 'start' => '-3 days', 'end' => 'now', ]);
Not valid yet!, (*12)
Find only unique visitors:, (*13)
$query->find('UniqueVisitors');
The AnalyzerComponent
allows you to get insights in your traffic. The following methods are available:, (*14)
There are no methods yet, they will probably be replaced by the Table's finders., (*15)
Analyzer plugin for CakePHP