priyolahiri/keenclient-php
Composer 安装命令:
composer require priyolahiri/keenclient-php
包简介
A PHP library for reporting events to the Keen IO API
关键字:
README 文档
README
This is a library to abstract the Keen IO API addEvent method
Installation
-
edit
composer.jsonfile with following contents:"require": { "keen-io/keen-io": "dev-master" }
-
install composer via
curl -s http://getcomposer.org/installer | php(on windows, download http://getcomposer.org/installer and execute it with PHP) -
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' ), ));
Create a scoped key
$filter = array( 'property_name' => 'id', 'operator' => 'eq', 'property_value' => '123' ); $filters = array($filter); $scopedKey = KeenIO::getScopedKey($filters);
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-04-03