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 1mo ago

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

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

Unknown

Total

1

Last Release

975d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a22eed67b910f51fa0698a481a65a8bd98408b749771bcbb55a143ccc0881f0e?d=identicon)[heddiyoussouf](/maintainers/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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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