mitquinn/heap-helper

This composer package assists with the Heap server side API.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mitquinn/heap-helper

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

This package is auto-updated.

Last update: 2025-09-29 02:58: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