PHPackages                             modernmcguire/mailthief - 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. modernmcguire/mailthief

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

modernmcguire/mailthief
=======================

A Laravel package to catch outbound mail (similar to Mailtrap) that also provides a UI to view them.

v0.6.0(4mo ago)318.5k↓50%3[1 PRs](https://github.com/modernmcguire/mailthief/pulls)MITBladePHP ^8.1

Since Aug 13Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/modernmcguire/mailthief)[ Packagist](https://packagist.org/packages/modernmcguire/mailthief)[ Docs](https://github.com/modernmcguire/mailthief)[ RSS](/packages/modernmcguire-mailthief/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (18)Used By (0)

Mailthief
=========

[](#mailthief)

A drop-in replacement for Mailtrap
----------------------------------

[](#a-drop-in-replacement-for-mailtrap)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0fa4cabcb829c052723cd816e65f8973f7191e476d3ed5446edd6a09bd36d9cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f6465726e6d6367756972652f6d61696c74686965662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/modernmcguire/mailthief)[![Total Downloads](https://camo.githubusercontent.com/4f691a472303efadee4354b6a44ca07ccdde4a177b6f9af610c0c42c092e93bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6465726e6d6367756972652f6d61696c74686965662e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/modernmcguire/mailthief)

A custom Laravel mailer that captures outbound emails, saves them to the database, and provides a clean UI for viewing. For a local environment you have wonderful tools like HELO or Mailhog. For dev environments, there's really only Mailtrap. This is meant to replace that.

[![Alt text](https://raw.githubusercontent.com/modernmcguire/mailthief/main/SCREENSHOT.png?raw=true "MailThief Screenshot")](https://raw.githubusercontent.com/modernmcguire/mailthief/main/SCREENSHOT.png?raw=true)

---

Do you just want to track your emails and don't need to capture them? Try out [MailSpy](https://github.com/modernmcguire/mailspy).

---

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

[](#installation)

You can install the package via composer:

```
composer require modernmcguire/mailthief
```

1. Update your `.env` file

```
MAIL_MAILER=mailthief
```

2. Run migrations

```
php artisan migrate
```

### And that's it!

[](#and-thats-it)

Usage
-----

[](#usage)

You can publish the config using Laravel's built in `php artisan vendor:publish`

The UI can be found at /dev/emails. This path is configurable via the config file.

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ben Miller](https://github.com/modernmcguire)
- [All Contributors](../../contributors)
- [Icon Creator - kerismaker](https://www.flaticon.com/authors/kerismaker)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance76

Regular maintenance activity

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% 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 ~83 days

Recently: every ~118 days

Total

16

Last Release

128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71c1ed28974c5a60df0a84f0c98ecf9d9c421e988ce7a9cfd28ae06a500599d9?d=identicon)[modernben](/maintainers/modernben)

---

Top Contributors

[![modernben](https://avatars.githubusercontent.com/u/67608755?v=4)](https://github.com/modernben "modernben (27 commits)")[![mattmurtaugh](https://avatars.githubusercontent.com/u/914335?v=4)](https://github.com/mattmurtaugh "mattmurtaugh (5 commits)")[![janson-git](https://avatars.githubusercontent.com/u/2221376?v=4)](https://github.com/janson-git "janson-git (1 commits)")

---

Tags

hacktoberfestlaravellaravelmailmailtrapmodernmcguiremailthief

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/modernmcguire-mailthief/health.svg)

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)[rulr/laravel-mailpot

A local mail inbox for Laravel

161.9k](/packages/rulr-laravel-mailpot)

PHPackages © 2026

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