castledio/castled-php-sdk
最新稳定版本:v2.0.0
Composer 安装命令:
composer require castledio/castled-php-sdk
包简介
Castled PHP Library
README 文档
README
The Castled PHP SDK empowers your PHP-based backend servers to transmit user attributes and events to Castled. This data can serve as triggers for campaigns or workflows, or be synchronized with your data warehouse for advanced customer segmentation. The following steps will guide you through the process of integrating the SDK with your PHP application.
SDK Installation
require_once __DIR__ . '/vendor/autoload.php'; composer require castledio/castled-php-sdk
SDK Initialisation
Castled::init(<Your API Key>);
Track User Attributes
Castled::identify([ 'userId' => '12345', 'traits' => [ 'plan' => 'basic', 'first_name' => 'John', 'last_name' => 'Taylor' ] ]);
Track User Events
Castled::track([ 'event' => 'order_status_update', 'userId' => '12345', 'properties' => [ 'plan' => 'basic', 'order_id' => 'o1' ] ]);
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-05