guidofaecke/heap-php

Library for sending data through Heap API.

2.1 2022-09-01 21:13 UTC

This package is auto-updated.

Last update: 2024-10-29 06:31:12 UTC


README

PHP library for sending data through Heap API.

Installation

Minimum PHP 7.4

You can install it using Composer:

composer require guidofaecke/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