GithubHelp home page GithubHelp logo

lsandrade / cakephp-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cakemanager/cakephp-analyzer

1.0 1.0 0.0 148 KB

Analyze Plugin for CakePHP 3.x

License: MIT License

PHP 100.00%

cakephp-analyzer's Introduction

Analyzer plugin for CakePHP 3.X

This Analyzer Plugin is a plugin that tracks and reports website traffic.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require cakemanager/cakephp-analyzer:dev-master

Now load the plugin via your shell:

$ bin/cake plugin load -b -r Analyzer

Or put the following in your config/bootstrap.php:

Plugin::load('Analyzer', ['bootstrap' => true, 'routes' => true]);

Run the migrations:

$ bin/cake migrations migrate -p Analyzer

From now on all requests will be reported!

Usage

Ignore

You can ignore to register request by putting the following code in your config/bootstrap.php:

Configure::write('Analyzer.Ignore.key', [
    'plugin' => 'DebugKit'
    'controller' => 'UsersController',
    'action' => 'index',
    'prefix' => 'admin',
]);

So, for example; this code will ignore all DebugKit requests:

Configure::write('Analyzer.Ignore.debug_kit', [
    'plugin' => 'DebugKit'
]);

Finders

The RequestsTable has the following finders:

Between

Set start- and end-date:

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

UniqueVisitors

Not valid yet!

Find only unique visitors:

    $query->find('UniqueVisitors');

AnalyzerComponent

The AnalyzerComponent allows you to get insights in your traffic. The following methods are available:

There are no methods yet, they will probably be replaced by the Table's finders.

cakephp-analyzer's People

Contributors

bobmulder avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.