hatchetaustralia/segment
最新稳定版本:v0.3.0
Composer 安装命令:
composer require hatchetaustralia/segment
包简介
A driver-based Segment Analytics library for PHP
README 文档
README
WIP Laravel Segment integration using drivers
Example Usage
Segment::track('itemAddedToCart', [ 'sku' => $sku, ]); Segment::driver()->track('itemAddedToCart', [ 'sku' => $sku, ]); Segment::driver('queue')->track('itemAddedToCart', [ 'sku' => $sku, ]);
Available Drivers:
WIP
stack: Dispatches the Segment events to various drivers- Can configure various other drivers to write to.
sync: Dispatches the Segment events immediatelyafter: Dispatches the Segment events after the responsequeue: Dispatches the Segment events via a queue worker- Can configure the queue connection and queue name
log: Dispatches the Segment events to a log channel- Can configure the logger channel
eloquent: Dispatches the Segment events to a model/the DB.- Can configure the model to use
null: Dispatches the Segment events to the void
Anayltics 2.0 JS Proxy
WIP
统计信息
- 总下载量: 1.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-07