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-11-10 01:24:15 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