PHP code example of ht-sdks / events-sdk-php
1. Go to this page and download the library: Download ht-sdks/events-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ht-sdks / events-sdk-php example snippets
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',
],
]);