Skip to content

ht-sdks/events-sdk-php

Repository files navigation

events-sdk-php

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.