PHPackages                             actinity/mailtrapper - 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. actinity/mailtrapper

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

actinity/mailtrapper
====================

Mailtrapper for Laravel

3.0(2mo ago)010.8k↓20.5%Vue

Since Jul 8Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Actinity/mailtrapper)[ Packagist](https://packagist.org/packages/actinity/mailtrapper)[ RSS](/packages/actinity-mailtrapper/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (24)Used By (0)

Mailtrapper
===========

[](#mailtrapper)

This is a package for Laravel and Vue that captures emails generated by the framework and renders them into an onscreen email viewer.

Think Mailtrap, but inline within the application itself, with no need to login to a separate service.

What it does
------------

[](#what-it-does)

Overrides the default mail transport in Laravel to save rendered emails to a database table.

The Recipient, Subject and HTML body are all captured.

The Vue component adds a mail icon at the top right, polls every few seconds for recent messages, and flashes when a new message is available.

Clicking on the icon opens an onscreen inbox. Because all emails are captured, this includes all emails generated to any recipient.

Requirements for use
--------------------

[](#requirements-for-use)

- Laravel 9+
- Vue 3+
- axios
- A logged in user accessible at `auth()->user()` \[DEFAULT\]

Authentication
--------------

[](#authentication)

By default the library requires an authenticated user and uses the `web` middleware group. You can customise this by publishing the config and modifying the `middleware` to suit your needs.

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

[](#installation)

`composer require actinity/mailtrapper`

Import the component from vendor/actinity/mailtrapper/src/components/Mailtrapper.vue

Add the `` tag to a view or your main SPA component.

Run `php artisan migrate` to set up the table

Set `MAIL_MAILER=trapper` in your `.env`

Emptying the database
---------------------

[](#emptying-the-database)

If you define a gate called `mailtrapper:empty`, the interface will include an 'Empty' button for matching users that allows them to empty the shared mailbox.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~282 days

Total

23

Last Release

85d ago

Major Versions

0.91 → 1.0.02022-02-01

1.0.1 → 2.02022-02-22

2.4 → 3.02026-05-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/c309728d0e50bc4dfbc0dc31065ec1a2f244cce90ded1b742c9a67d07a2bebed?d=identicon)[actinity](/maintainers/actinity)

---

Top Contributors

[![Actinity](https://avatars.githubusercontent.com/u/1878605?v=4)](https://github.com/Actinity "Actinity (31 commits)")

### Embed Badge

![Health badge](/badges/actinity-mailtrapper/health.svg)

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

###  Alternatives

[bigbharatjain/laravel-clickatell

This package makes it easy to send sms using clickatell.com with Laravel 5.

1435.2k](/packages/bigbharatjain-laravel-clickatell)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1323.6k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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