ricbra/kissmetrics-bundle

Bundle around the KISSmetrics API client

dev-master / 1.0.x-dev 2014-12-11 21:02 UTC

This package is not auto-updated.

Last update: 2024-12-17 17:30:19 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

This Symfony2 bundle integrates the php-kissmetrics-api in your project.

Installation

$ composer require ricbra/kissmetrics-bundle

Activate in AppKernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ricbra\Bundle\KissMetricsBundle\RicbraKissMetricsBundle(),
    );
}

Configuration

ricbra_kiss_metrics:
    api_key: y0ur-4p1-k3y
    user_agent: "your-app-name/1.0.0 +https://yourapp.com"

Usage

$this->get('kissmetrics')->setProperties([
    '_p' => 'Facebook #23',
    '_d' => 1,
    '_t' => 21421421,
    'Property' => 'Value'
]);