承接 cakemanager/cakephp-analyzer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cakemanager/cakephp-analyzer

Composer 安装命令:

composer require cakemanager/cakephp-analyzer

包简介

Analyzer plugin for CakePHP

README 文档

README

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.

统计信息

  • 总下载量: 92
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-22