The package can be installed via composer.
composer require ht-sdks/events-sdk-php
The links bellow should provide all the documentation needed to make the best use of the library and the Hightouch Events API:
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',
],
]);
This library is released under the MIT License.