PHPackages                             heddiyoussouf/mailtracker - 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. heddiyoussouf/mailtracker

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

heddiyoussouf/mailtracker
=========================

This package provides a simple yet effective solution to track email opens using an embedded image in Laravel applications. By embedding a unique image uri in emails, the package allows developers to identify when the email has been opened and viewed by the recipient.

1.0.0(2y ago)011PHPPHP ^8.0

Since Sep 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/HeddiYoussouf1/mailtracker)[ Packagist](https://packagist.org/packages/heddiyoussouf/mailtracker)[ RSS](/packages/heddiyoussouf-mailtracker/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Mailtracker for Laravel
=======================

[](#mailtracker-for-laravel)

heddiyoussouf/mailtracker provides an efficient way to track email opens in Laravel applications. It integrates seamlessly, leveraging embedded images to monitor when recipients view their emails. Table of Contents

```
Features
Installation
Usage
Customizations
Conclusion

```

### Features

[](#features)

```
Mail Model: Logs individual emails with details.
Mailtracker Model: Records email open actions with attributes such as ip and user_agent.
HasTracker Trait: Equips the Mail model with the ability to generate unique tracking URLs.

```

### Installation

[](#installation)

Install via Composer:

```
bash

composer require heddiyoussouf/mailtracker

```

If not using Laravel's package auto-discovery, register the service provider in config/app.php:

```
php

'providers' => [
    // ...
    Heddiyoussouf\Mailtracker\MailTrackerProvider::class,
]

```

### Usage

[](#usage)

Integrate the Mail and Mailtracker models as needed. Attach the HasTracker trait to your Mail model. Generate tracking URLs: For individual emails: `$mail->singleView()`For broadcast emails: `$mail->multipleView()`Embed the tracking image in the email's Blade view:

```
blade.php

@mailtracker($trackingURL)

```

### Customizations

[](#customizations)

Publish Assets and Config:

```
bash

php artisan vendor:publish --provider="Heddiyoussouf\Mailtracker\MailTrackerProvider"

```

Styling the Image: The embedded image can be styled using its class **mailtracker-image** or its ID **mailtracker-image**.

```
css

.mailtracker-image {
    /* Your styles here */
}
/*or*/
#mailtracker-image {
    /* Your styles here */
}

```

Config Customizations: Adjust the **mailtracker.php** config to specify a custom image or make other configurations.

```
return [
    'image' => 'assets/footer.png',
];

```

### Conclusion

[](#conclusion)

Mailtracker simplifies email open tracking in Laravel. Through easy integration, detailed tracking, and flexible customization, it stands as a robust solution for all Laravel-based email campaigns.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Unknown

Total

1

Last Release

1030d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95548837?v=4)[heddiyoussouf](/maintainers/heddiyoussouf)[@heddiyoussouf](https://github.com/heddiyoussouf)

---

Top Contributors

[![HeddiYoussouf1](https://avatars.githubusercontent.com/u/105787447?v=4)](https://github.com/HeddiYoussouf1 "HeddiYoussouf1 (13 commits)")

### Embed Badge

![Health badge](/badges/heddiyoussouf-mailtracker/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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