PHPackages                             think.studio/laravel-notification-tracker - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. think.studio/laravel-notification-tracker

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

think.studio/laravel-notification-tracker
=========================================

Track status of notifications sent by application.

1.4.0(2y ago)162MITPHPPHP ^8.1

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-notification-tracker)[ Packagist](https://packagist.org/packages/think.studio/laravel-notification-tracker)[ Docs](https://github.com/dev-think-one/laravel-notification-tracker)[ RSS](/packages/thinkstudio-laravel-notification-tracker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (9)Used By (0)

Laravel notification tracker
============================

[](#laravel-notification-tracker)

[![Packagist License](https://camo.githubusercontent.com/0c7c4eca590e8d41115182c6fef6c3ece7adddcbfd1b1b97cb6f667bd946740f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d6e6f74696669636174696f6e2d747261636b65723f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/0c7c4eca590e8d41115182c6fef6c3ece7adddcbfd1b1b97cb6f667bd946740f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d6e6f74696669636174696f6e2d747261636b65723f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/7e069ca335fbb85309d05395cec70a538ae2a7183ce07531bd72b681e03aac91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d6e6f74696669636174696f6e2d747261636b6572)](https://packagist.org/packages/think.studio/laravel-notification-tracker)[![Total Downloads](https://camo.githubusercontent.com/5b19880033a1499b13c907b229d9a111203c27b350c74181cf829856efc05cbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d6e6f74696669636174696f6e2d747261636b6572)](https://packagist.org/packages/think.studio/laravel-notification-tracker)[![Build Status](https://camo.githubusercontent.com/0dfabda9e1d9e1831f9531db93a118c8ab20c21c15290a36647f194d893ce153/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d6e6f74696669636174696f6e2d747261636b65722f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-notification-tracker/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/a3230efe12c4297a3b0ffc7d43edf03c665cf33d1e61f09619d8583ed07665f7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d6e6f74696669636174696f6e2d747261636b65722f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-notification-tracker/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1364f1ee13487ca8f038641c8a6bce7268237dff8a0f49b6df21104d5826c366/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d6e6f74696669636174696f6e2d747261636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-notification-tracker/?branch=main)

Track status of notifications sent by application.

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-notification-tracker
```

You can publish the config file with:

```
php artisan vendor:publish --provider="NotificationTracker\ServiceProvider" --tag="config"
```

Configuration
-------------

[](#configuration)

```
public function register()
{
    // cancel default migrations files
    \NotificationTracker\NotificationTracker::ignoreMigrations();
    // cancel default web routes implementation
    \NotificationTracker\NotificationTracker::ignoreRoutes();
    // change class names what stored in database
    \NotificationTracker\NotificationTracker::classMap([
        'registration_confirmation' => \App\Notifications\RegistrationNotification::class,
    ]);
}
```

Usage
-----

[](#usage)

For your notification please implement Interface `Trackable`, use trait `HasTracker`.

```
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
use NotificationTracker\Notification\HasTracker;
use NotificationTracker\Notification\Trackable;

class CertifiedNotification extends Notification implements ShouldQueue, Trackable
{
    use Queueable, HasTracker;

    public Document $document;

    public function __construct(Document $document)
    {
        $this->document = $document;
    }

    public function via($notifiable = null)
    {
        return ['mail', 'custom'];
    }

    public function toMail($notifiable)
    {
        $message = (new MailMessage)->subject('Certificate created');

        $message->line('Thank you!');

        // Initialise tracker
        return $this->tracker()
            // You can add metadata to channel row. Using callback, or passing key->value
            ->trackerMeta(fn(\JsonFieldCast\Json\AbstractMeta $meta, $trackedChannel) => $meta->toMorph('document', $this->document))
            ->trackerMeta('document_category', $this->document->category?->name)
            // Save tracked data
            ->trackMailMessage($message, $notifiable);
    }

    public function toCustom($notifiable)
    {
        /** @var \NotificationTracker\Models\TrackedChannel $trackedChannel */
        $trackedChannel = $this->tracker()->track('custom', $notifiable);

        return [
            'subject' => 'Foo',
            'body' => "Foo {$trackedChannel->getClickTrackerUrl('https://test.com')} {$trackedChannel->getPixelImageHtml()}",
        ];
    }
}
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~50 days

Total

8

Last Release

966d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53f93fa87d58f33d106de6bd5e2946f8a345ebfaee146360746056cb134a15a0?d=identicon)[think.studio](/maintainers/think.studio)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (10 commits)")

---

Tags

laravelnotificationtracker

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/thinkstudio-laravel-notification-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/thinkstudio-laravel-notification-tracker/health.svg)](https://phpackages.com/packages/thinkstudio-laravel-notification-tracker)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)

PHPackages © 2026

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