ht-sdks/events-sdk-php

Hightouch Events SDK PHP

0.0.1 2024-03-27 14:45 UTC

This package is auto-updated.

Last update: 2024-11-27 16:14:39 UTC


README

CI

Installation

The package can be installed via composer.

composer require ht-sdks/events-sdk-php

Documentation

The links bellow should provide all the documentation needed to make the best use of the library and the Hightouch Events API:

Usage

use Hightouch\Hightouch;

Hightouch::init('WRITE_KEY', [
  'host' => 'https://us-east-1.hightouch-events.com',
]);

Hightouch::track([
  'event' => 'Created Account',
  'userId' => '123',
  'properties' => [
    'application' => 'Desktop',
    'version' => '1.2.3',
  ],
]);

License

This library is released under the MIT License.