2017 © Pedro Peláez
 

library clevertap-php

Pushes events to your CleverTap account from your PHP application (Unofficial wrapper)

image

xaneem/clevertap-php

Pushes events to your CleverTap account from your PHP application (Unofficial wrapper)

  • Saturday, January 27, 2018
  • by xaneem
  • Repository
  • 1 Watchers
  • 1 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 48 % Grown

The README.md

CleverTap PHP Wrapper (unofficial)

Pushes events to your CleverTap account from your PHP application. An unofficial wrapper that uses the official API., (*1)

Installation

Install using Composer, (*2)

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., (*3)

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, (*4)

The Versions

27/01 2018

dev-master

9999999-dev

Pushes events to your CleverTap account from your PHP application (Unofficial wrapper)

  Sources   Download

MIT MIT License

The Requires

 

by Saneem

09/08 2016

0.1

0.1.0.0

Push events from your PHP application (Unofficial wrapper)

  Sources   Download

MIT License

The Requires

 

by Saneem