journify/journify-php

0.0.2 2025-04-17 17:03 UTC

README

CI

Installation

The package can be installed via composer.

composer require journify/journify-php

Documentation

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

Usage

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,
      ],
    ],
  ],
]);