PHPackages                             moirei/event-tracking - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. moirei/event-tracking

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

moirei/event-tracking
=====================

Send application events to analytics services and data-warehouse.

0.5.0(3mo ago)0498MITPHPPHP ^8.2

Since Oct 19Pushed 3mo agoCompare

[ Source](https://github.com/moirei/event-tracking)[ Packagist](https://packagist.org/packages/moirei/event-tracking)[ RSS](/packages/moirei-event-tracking/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (28)Versions (13)Used By (0)

Event Tracking
==============

[](#event-tracking)

This package allows you to send application events to analytics services and any data-warehouse of your choice. Although inspired by [Analytics.io](https://github.com/DavidWells/analytics) and [Segment](https://segment.com), it should provide you more flexibility over your events and how they're manually or automatically handled.

Documentation
-------------

[](#documentation)

All documentation is available at [the documentation site](https://moirei.github.io/event-tracking).

Features
--------

[](#features)

- Send events to multiple analytics channels with ease
- Flexible event name and property mapping per channel per event
- Automatically capture and track local and vendor events
- Capture and track observable model events
- Use PHP Enums as event names
- Send events asynchronously with queues

Example
-------

[](#example)

Track an event

```
Events::track('Purchase', $order);

// or auto track app events

// Somewhere in your app
Events::listen(OrderPlacedEvent::class);

// Elsewhere in your app
OrderPlacedEvent::dispatch($order);
```

Identify and update a user profile

```
Events::identify($user->id, [
    'name'             => $user->name,
    'email'            => $user->email,
    'phone'            => $user->phone,
    'city'             => $user->city,
    'country'          => $user->country,
    "Favorite Color"   => $user->favoriteColor,
]);
```

Installation
------------

[](#installation)

```
composer require moirei/event-tracking
```

Publish the config

```
php artisan vendor:publish --tag="event-tracking"
```

Tests
-----

[](#tests)

```
composer test
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance81

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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 ~113 days

Recently: every ~302 days

Total

12

Last Release

103d ago

PHP version history (2 changes)0.1.0PHP ^8.0

0.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ac6a15a7b2f9055a98e4419e0d2820f72db3567706837ec388baee535d3e3e7?d=identicon)[moirei](/maintainers/moirei)

---

Top Contributors

[![augustusnaz](https://avatars.githubusercontent.com/u/51074349?v=4)](https://github.com/augustusnaz "augustusnaz (11 commits)")

---

Tags

laravelgoogleeventstrackinganalyticsmixpanelmoirei

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/moirei-event-tracking/health.svg)

```
[![Health](https://phpackages.com/badges/moirei-event-tracking/health.svg)](https://phpackages.com/packages/moirei-event-tracking)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

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

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M299](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.5k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M186](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M162](/packages/spatie-laravel-health)

PHPackages © 2026

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