2017 © Pedro Peláez
 

cakephp-plugin cakephp-analyzer

Analyzer plugin for CakePHP

image

cakemanager/cakephp-analyzer

Analyzer plugin for CakePHP

  • Friday, October 23, 2015
  • by bobmulder
  • Repository
  • 1 Watchers
  • 3 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Analyzer plugin for CakePHP 3.X

This Analyzer Plugin is a plugin that tracks and reports website traffic., (*1)

Installation

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)

Usage

Ignore

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'
]);

Finders

The RequestsTable has the following finders:, (*10)

Between

Set start- and end-date:, (*11)

    $query->find('Between', [
        'start' => '-3 days',
        'end' => 'now',
    ]);

UniqueVisitors

Not valid yet!, (*12)

Find only unique visitors:, (*13)

    $query->find('UniqueVisitors');

AnalyzerComponent

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)

The Versions

23/10 2015

dev-master

9999999-dev

Analyzer plugin for CakePHP

  Sources   Download

The Requires

 

The Development Requires