euphio / eph-chartbeat
Zend Framework 2 的 Chartbeat 模块
v0.1
2013-03-16 02:12 UTC
Requires
- php: >=5.3.3
- zendframework/zend-eventmanager: 2.*
- zendframework/zend-mvc: 2.*
This package is not auto-updated.
Last update: 2024-09-14 14:06:02 UTC
README
Zend Framework 2 的 Chartbeat 模块
简介
此模块将通过 HeadScript 和 InlineScript 视图助手将 Chartbeat 跟踪代码添加到您的 ZF2 应用程序中。
安装
首先,将以下行添加到您的 composer.json
文件中
"require": { "euphio/eph-chartbeat": ">=0.1" }
然后,通过在您的 application.config.php 文件中添加 EphChartbeat
来启用该模块。
<?php return array( 'modules' => array( 'EphChartbeat', 'Application', ), );
配置
以下设置表示在 http://chartbeat.com/docs/configuration_variables/ 可以找到的配置变量。
<?php return array( 'chartbeat' => array( 'domain' => 'yourdomain.com', // Your Domain 'no_cookies' => false, // Disable Cookies? 'path' => '', // Path override 'uid' => '1234', // Your User id 'use_canonical' => false // Use canonical links? ), );