2017 © Pedro Peláez
 

library keenclient-php

A PHP library for reporting events to the Keen IO API

image

priyolahiri/keenclient-php

A PHP library for reporting events to the Keen IO API

  • Wednesday, April 3, 2013
  • by priyolahiri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 54 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Keen IO PHP Library

Build Status Still Maintained, (*1)

This is a library to abstract the Keen IO API addEvent method, (*2)

Installation

  1. edit composer.json file with following contents:, (*3)

    json "require": { "keen-io/keen-io": "dev-master" }, (*4)

  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, (*5)

use KeenIO\Service\KeenIO;

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

Send a new event, (*6)

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

Create a scoped key, (*7)

$filter = array(
    'property_name' => 'id', 
    'operator' => 'eq', 
    'property_value' => '123'
);
$filters = array($filter);

$scopedKey = KeenIO::getScopedKey($filters);

The Versions

03/04 2013

dev-master

9999999-dev http://keen.io

A PHP library for reporting events to the Keen IO API

  Sources   Download

MIT

The Requires

 

analytics keen io

03/04 2013

1.0.0

1.0.0.0 http://keen.io

A PHP library for reporting events to the Keen IO API

  Sources   Download

MIT

The Requires

 

analytics keen io

03/04 2013

1.0.x-dev

1.0.9999999.9999999-dev http://keen.io

A PHP library for reporting events to the Keen IO API

  Sources   Download

MIT

The Requires

 

analytics keen io