The package can be installed via composer.
composer require journify/journify-phpThe links bellow should provide all the documentation needed to make the best use of the library:
use Journify\Journify;
Journify::init('WRITE_KEY');
Journify::track([
'event' => 'add_to_cart',
'userId' => 'user123',
'properties' => [
'currency' => 'USD',
'value' => 29.99,
'items' => [
[
'item_id' => 'SKU12345',
'item_name' => 'T-shirt',
'price' => 29.99,
'quantity' => 1,
],
],
],
]);