guidofaecke/heap-php

通过Heap API发送数据的库。

2.1 2022-09-01 21:13 UTC

This package is auto-updated.

Last update: 2024-09-29 06:20:32 UTC


README

通过Heap API发送数据的PHP库。

安装

最低PHP版本7.4

您可以使用Composer安装它

composer require guidofaecke/heap-php

跟踪事件

$heap = new \Heap\Client('APP_ID');
$heap->track('Paid Order', 'example@example.com');

查看完整示例

添加用户属性

$heap = new \Heap\Client('APP_ID');
$heap->addUserProperties('example@example.com', array(
    'profession' => 'Scientist',
));

查看完整示例