xaneem/clevertap-php
Composer 安装命令:
composer require xaneem/clevertap-php
包简介
Pushes events to your CleverTap account from your PHP application (Unofficial wrapper)
README 文档
README
Pushes events to your CleverTap account from your PHP application. An unofficial wrapper that uses the official API.
##Installation Install using Composer
composer require xaneem/clevertap-php
##Sample code Code for setting a profile and pushing an event. Please make sure you replace your Account ID and Passcode. It's available in Settings dashboard inside CleverTap.
require_once "vendor/autoload.php";
$clevertap = new \CleverTap\clevertap(
'YOUR-ACCOUNT-ID',
'YOUR-PASSCODE'
);
// Setting profile and identity information
print_r(
$clevertap->setProfile(
'john@example.com',
[
'Name' => 'John Doe',
'Category' => 'Platinum'
]
)
);
// Pushing an event
print_r(
$clevertap->pushEvent(
'Purchased product',
[
'Amount' => 2,
'Currency' => 'BTC'
]
)
);
License
MIT License
统计信息
- 总下载量: 67
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-09