br0sk/yii2-keen

The keen.io API for Yii2

Installs: 1 358

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:project

0.1.3 2016-03-04 22:05 UTC

This package is not auto-updated.

Last update: 2024-03-16 15:08:31 UTC


README

A Yii2 extension for http://keen.io

This is an extension for Yii2 that makes it easy to use http://keen.io/.

You can configure it in your application configuration like so:

'keen' => [
    'class' => 'br0sk\keen\KeenIo',
    'projectId' => 'yourprojectid',
    'readKey' 	=> 'yourreadkey',
    'writeKey'	=> 'yourwritekey'
],

note: You can find the project id and push API key in the control panel for you project if you log in here.

Adding it to your components array.

Pushing an event is as easy as:

$event = ['purchase' => ['item' => 'Golden Elephant']];
$keenReturn = Yii::$app->keen->addEvent('purchases', $event);

You can now use all the calls in the Keen PHP SDK this extension builds on