antoinelemaire/braze-php

This package is abandoned and no longer maintained. The author suggests using the yoopies/braze-php package instead.

Braze API client built on top of Guzzle 6|7

0.0.1 2021-03-11 12:53 UTC

This package is auto-updated.

Last update: 2021-09-02 07:26:41 UTC


README

This is a non-official Braze PHP library which provides access to the Braze API from applications written in the PHP language.

Api references: https://www.braze.com/docs/api/

Installation

The recommended way to install braze-php is through Composer:

composer require yoopies/braze-php

Usage

use Braze\BrazeClient;

$client = new BrazeClient('apiKey', 'rest.fra-01.braze.eu');

$client->user->track(
    [
        'events' => [
            [
                '_update_existing_only' => false,
                'name'                  => 'my_event_name',
                'external_id'           => '1234',
                'time'                  => (new \DateTime())->format('c'),
            ],
        ],
    ]
);