tonypiper / KeenClient-PHP

Official PHP client for the Keen IO API. Build analytics features directly into your PHP apps.

Home Page:https://keen.io/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Still Maintained

Keen IO PHP Library

This is a library to abstract the Keen IO API addEvent method

Installation

  1. edit composer.json file with following contents:

    "require": {
       "keen-io/keen-io": "dev-master"
    }
  2. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)

  3. run php composer.phar install

Use

Configure the service

use KeenIO\Service\KeenIO;

KeenIO::configure($projectId, $apiKey);

Send a new event

KeenIO::addEvent('purchases', array(
    'purchase' => array(
        'item' => 'Golden Elephant'
    ),
));

About

Official PHP client for the Keen IO API. Build analytics features directly into your PHP apps.

https://keen.io/docs


Languages

Language:PHP 100.0%