iagomelanias / heap-php

Library for sending data through Heap API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heap PHP Client

PHP library for sending data through Heap API.

Installation

You can install it using Composer:

composer require iagomelanias/heap-php

Track Events

$heap = new \Heap\Client('APP_ID');
$heap->track('Paid Order', 'example@example.com');

See full example

Add User Properties

$heap = new \Heap\Client('APP_ID');
$heap->addUserProperties('example@example.com', array(
    'profession' => 'Scientist',
));

See full example

About

Library for sending data through Heap API.


Languages

Language:PHP 100.0%