mitquinn/heap-helper

This composer package assists with the Heap server side API.

v1.0.1 2021-11-30 06:34 UTC

This package is auto-updated.

Last update: 2024-04-29 04:21:39 UTC


README

GitHub issues GitHub stars GitHub license

Description

Heap Helper is a simple wrapper for the Heap server side API.

Heap Helper provides:

  • simple integration with the Heap server side API.
  • wrapper for the Heap API endpoints.
  • individual resources that the API is expecting to be provided.

You can learn more about Heap here: https://heapanalytics.com/

$configuration = new \Mitquinn\HeapHelper\HeapConfiguration('apiKey', 'appId');
$heapHelper = new \Mitquinn\HeapHelper\HeapHelper($configuration);

$event = new \Mitquinn\HeapHelper\Resources\HeapEvent(
    'eventName', 
    'alice@example.com', 
    ['propertyKey' => 'propertyValue']
);

$heapResponse = $heapHelper->track($event);

Installation

The recommended way to install Heap Helper is through Composer.

composer require mitquinn/heap-helper

License

Heap Helper is made available under the GNU General Public License (GNU). Please see the License File for more information.

Contributors