ricbra / kissmetrics-bundle
Bundle around the KISSmetrics API client
Installs: 1 098
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- ricbra/php-kissmetrics-api: 1.0.*@dev
This package is not auto-updated.
Last update: 2024-11-05 16:53:23 UTC
README
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' ]);