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. [API Development](/categories/api)
4. /
5. hatchetaustralia/segment

AbandonedArchivedLibrary[API Development](/categories/api)

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 today

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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

842d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77458564?v=4)[Hatchet](/maintainers/hatchet)[@hatchet](https://github.com/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

87512.0M161](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M96](/packages/dedoc-scramble)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k90](/packages/nativephp-mobile)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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