Download the PHP package xaneem/clevertap-php without Composer
On this page you can find all versions of the php package xaneem/clevertap-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xaneem/clevertap-php
More information about xaneem/clevertap-php
Files in xaneem/clevertap-php
Download xaneem/clevertap-php
More information about xaneem/clevertap-php
Files in xaneem/clevertap-php
Vendor xaneem
Package clevertap-php
Short Description Push events from your PHP application (Unofficial wrapper)
License MIT License
Package clevertap-php
Short Description Push events from your PHP application (Unofficial wrapper)
License MIT License
Please rate this library. Is it a good library?
Informations about the package clevertap-php
CleverTap PHP Wrapper (unofficial)
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(
'[email protected]',
[
'Name' => 'John Doe',
'Category' => 'Platinum'
]
)
);
// Pushing an event
print_r(
$clevertap->pushEvent(
'Purchased product',
[
'Amount' => 2,
'Currency' => 'BTC'
]
)
);
License
MIT License
All versions of clevertap-php with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
^6.2
The package xaneem/clevertap-php contains the following files
Loading the files please wait ....