PHPackages                             hatchetaustralia/segment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. hatchetaustralia/segment

AbandonedArchivedLibrary

hatchetaustralia/segment
========================

A driver-based Segment Analytics library for PHP

v0.3.0(2y ago)01.5kMITPHPPHP ^8.1

Since Dec 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hatchetaustralia/segment-drivers)[ Packagist](https://packagist.org/packages/hatchetaustralia/segment)[ RSS](/packages/hatchetaustralia-segment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (13)Versions (12)Used By (0)

SegmentAnalytics
================

[](#segmentanalytics)

**WIP** Laravel Segment integration using drivers

Example Usage
-------------

[](#example-usage)

```
Segment::track('itemAddedToCart', [
    'sku' => $sku,
]);

Segment::driver()->track('itemAddedToCart', [
    'sku' => $sku,
]);

Segment::driver('queue')->track('itemAddedToCart', [
    'sku' => $sku,
]);
```

Available Drivers:
------------------

[](#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
----------------------

[](#anayltics-20-js-proxy)

WIP

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~21 days

Total

11

Last Release

793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a3485b619f8f287aba5325e29d894b0d43b16cc9d413816a39c0b4dc2aa8dd8?d=identicon)[hatchet](/maintainers/hatchet)

---

Top Contributors

[![bradietilley](https://avatars.githubusercontent.com/u/44430471?v=4)](https://github.com/bradietilley "bradietilley (34 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/hatchetaustralia-segment/health.svg)

```
[![Health](https://phpackages.com/badges/hatchetaustralia-segment/health.svg)](https://phpackages.com/packages/hatchetaustralia-segment)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
