xaneem / clevertap-php
Pushes events to your CleverTap account from your PHP application (Unofficial wrapper)
Installs: 67
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/xaneem/clevertap-php
Requires
- guzzlehttp/guzzle: ^6.2
This package is not auto-updated.
Last update: 2025-12-21 02:07:48 UTC
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