PHPackages                             label84/laravel-mailviewer - 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. label84/laravel-mailviewer

ActiveLibrary

label84/laravel-mailviewer
==========================

View mails sent by Laravel in the browser

v3.4.1(2mo ago)1429.5k↓41.1%1MITPHPPHP ^8.2CI passing

Since Dec 22Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Label84/laravel-mailviewer)[ Packagist](https://packagist.org/packages/label84/laravel-mailviewer)[ RSS](/packages/label84-laravel-mailviewer/feed)WikiDiscussions master Synced 1mo ago

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

Laravel MailViewer
==================

[](#laravel-mailviewer)

[![Latest Stable Version](https://camo.githubusercontent.com/f95d7aad5a5cf2103bc94583dcfb764901420875c80814b8fef93d428761cf94/68747470733a2f2f706f7365722e707567782e6f72672f6c6162656c38342f6c61726176656c2d6d61696c7669657765722f762f737461626c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/label84/laravel-mailviewer)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/2171ebb15024e32e7a6548c2ac5bd4b83baa5ae5c2b6bfe5072faaf9875debd9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6162656c38342f6c61726176656c2d6d61696c7669657765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/label84/laravel-mailviewer)[![GitHub Workflow Status](https://camo.githubusercontent.com/894fc6858e8695307c6bb712c47a496a150e22a68176ba942d8af0e3d399f721/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6162656c38342f6c61726176656c2d6d61696c7669657765722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/894fc6858e8695307c6bb712c47a496a150e22a68176ba942d8af0e3d399f721/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6162656c38342f6c61726176656c2d6d61696c7669657765722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)

Mailviewer enables you to view and filter mail that is sent by your Laravel application in the browser. The Analytics page gives you insight in the amount of mails sent sent by your application grouped by Notification.

[![MailViewer screenshot](./docs/screenshot-default.png?raw=true "MailViewer Screenshot")](./docs/screenshot-default.png?raw=true)

- [Laravel Support](#laravel-support)
- [Installation](#installation)
- [Usage](#usage)
    - [Filters](#filters)
    - [Analytics](#analytics)
    - [Examples](#examples)
    - [Exclusion list](#exclusion-list)
- [Tests](#tests)
- [License](#license)

Laravel Support
---------------

[](#laravel-support)

VersionRelease12.x^3.412.x^3.411.x^3.0Limitations
-----------

[](#limitations)

This package tracks mails sent via Laravel's `Mailables` and `Notifications`.

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

[](#installation)

### 1. Require package

[](#1-require-package)

```
composer require label84/laravel-mailviewer
```

### 2. Publish the config file and migration

[](#2-publish-the-config-file-and-migration)

```
php artisan vendor:publish --provider="Label84\MailViewer\MailViewerServiceProvider" --tag="config"
php artisan vendor:publish --provider="Label84\MailViewer\MailViewerServiceProvider" --tag="migrations"
```

#### 2.1 Publish the views (optional)

[](#21-publish-the-views-optional)

To change the default views, you can publish them to your application.

```
php artisan vendor:publish --provider="Label84\MailViewer\MailViewerServiceProvider" --tag="views"
```

### 3. Run migrations

[](#3-run-migrations)

Run the migration command.

```
php artisan migrate
```

Usage
-----

[](#usage)

To preview the mails sent by your application visit: `/admin/mailviewer`. You can change this url in the config file.

You can add `MAILVIEWER_ENABLED=true` to your `.env` file.

### Filters

[](#filters)

You can filter the mails in the overview with query parameters - example `/admin/mailviewer?notification=WelcomeMail`.

ParameterValueExampleto=email[info@example.com](info@example.com)cc=email[info@example.com](info@example.com)bcc=email[info@example.com](info@example.com)notification=class basename of NotificationVerifyEmailfrom=[Carbon](https://carbon.nesbot.com/docs)2 hours agotill=[Carbon](https://carbon.nesbot.com/docs)yesterdayaround=[Carbon](https://carbon.nesbot.com/docs)2020-12-24 06:00The 'notification' parameter only requires the class basename (ie. \\Illuminate\\Auth\\Notifications\\VerifyEmail = VerifyEmail).

The around parameter show all mails sent around the given time. By default is will show all mails sent 10 minutes before and 10 minutes after the given time. You can customize the number of minutes by adding an additional &amp;d=X parameter where X is the number of minutes.

### Analytics

[](#analytics)

[![MailViewer Analytics screenshot](./docs/screenshot-analytics.png?raw=true "MailViewer Analytics Screenshot")](./docs/screenshot-analytics.png?raw=true)

To preview the analytics page visit: `/admin/mailviewer/analytics`. You can change this url in the config file.

On the analytics page you can view the number of mails sent per Notification and the latest time this notification was sent.

### Examples

[](#examples)

#### Example #1

[](#example-1)

View all VerifyEmail mails to [info@example.com](info@example.com).

`/admin/mailviewer?to=info@example.com&notification=VerifyEmail`

#### Example #2

[](#example-2)

View all mails sent in the last 2 hours.

`/admin/mailviewer?from=2 hours ago`

### Exclusion list

[](#exclusion-list)

In the config file you can add an array of Notification classes and an array of email addresses that should be excluded. Those notifications and email addresses won't be saved to the database.

Tests
-----

[](#tests)

```
composer pint
composer analyse
composer test
```

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~127 days

Recently: every ~188 days

Total

16

Last Release

61d ago

Major Versions

v1.0.3 → v2.0.02021-12-22

v2.0.0 → v3.0.02022-02-07

PHP version history (4 changes)v1.0.0PHP ^7.2 || ^8.0

v2.0.0PHP ^7.4 || ^8.0

v3.0.0PHP ^8.0

v3.3.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/78c37d1496f19445af6a812d2275c34bbd08dead68aebae70229d7ff0670ed85?d=identicon)[tjardo](/maintainers/tjardo)

---

Top Contributors

[![tjardoo](https://avatars.githubusercontent.com/u/31533540?v=4)](https://github.com/tjardoo "tjardoo (23 commits)")[![andreifiroiu](https://avatars.githubusercontent.com/u/4728003?v=4)](https://github.com/andreifiroiu "andreifiroiu (1 commits)")

---

Tags

laravellaravel-package

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/label84-laravel-mailviewer/health.svg)

```
[![Health](https://phpackages.com/badges/label84-laravel-mailviewer/health.svg)](https://phpackages.com/packages/label84-laravel-mailviewer)
```

###  Alternatives

[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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