euphio/eph-chartbeat

A Chartbeat module for Zend Framework 2

Installs: 19

Dependents: 0

Watchers: 1

Forks: 1

Language: PHP

v0.1 2013-03-16 02:12 UTC

README

A Chartbeat module for Zend Framework 2

Introduction

This module will add Chartbeat tracking code to your ZF2 Application via the HeadScript and InlineScript View Helpers.

Installation

First, add the following line into your composer.json file:

"require": {
    "euphio/eph-chartbeat": ">=0.1"
}

Then, enable the module by adding EphChartbeat in your application.config.php file.

<?php
return array(
    'modules' => array(
        'EphChartbeat',
        'Application',
    ),
);

Configuration

The following settings represent the configuration variables found at: 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?
    ),
);