guidofaecke / heap-php
Library for sending data through Heap API.
2.1
2022-09-01 21:13 UTC
Requires
- php: ^7.4 || ^8.1
- guzzlehttp/guzzle: ^6.0 || ^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-29 06:47:33 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');
Add User Properties
$heap = new \Heap\Client('APP_ID'); $heap->addUserProperties('example@example.com', array( 'profession' => 'Scientist', ));