iagomelanias/heap-php

Library for sending data through Heap API.

v1.1.0 2020-03-27 03:55 UTC

This package is not auto-updated.

Last update: 2024-05-11 22:40:47 UTC


README

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