This package is abandoned and no longer maintained. No replacement package was suggested.

A driver-based Segment Analytics library for PHP

v0.3.0 2024-03-13 01:44 UTC

This package is auto-updated.

Last update: 2024-08-13 02:53:55 UTC


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 immediately
  • after: Dispatches the Segment events after the response
  • queue: 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