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

2.4(1y ago)09.1k↓19.2%Vue

Since Jul 8Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (23)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

38

—

LowBetter than 85% of packages

Maintenance45

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Recently: every ~178 days

Total

22

Last Release

433d ago

Major Versions

0.91 → 1.0.02022-02-01

1.0.1 → 2.02022-02-22

### 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 (30 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

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/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)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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