PHPackages                             yzen.dev/laravel-local-mailer - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. yzen.dev/laravel-local-mailer

ActiveLibrary[Testing &amp; Quality](/categories/testing)

yzen.dev/laravel-local-mailer
=============================

0.1.0(3y ago)372.5k2[1 issues](https://github.com/yzen-dev/laravel-local-mailer/issues)MITPHPPHP ^7.4 | ^8.0

Since May 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/yzen-dev/laravel-local-mailer)[ Packagist](https://packagist.org/packages/yzen.dev/laravel-local-mailer)[ RSS](/packages/yzendev-laravel-local-mailer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (3)Used By (0)

Local mailer for laravel
========================

[](#local-mailer-for-laravel)

[![Packagist Version](https://camo.githubusercontent.com/8fe4253ab5f30f7de796928087ff4e0620d4f7f046d00f4d936e98e776c485e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c65723f636f6c6f723d626c7565266c6162656c3d76657273696f6e)](https://camo.githubusercontent.com/8fe4253ab5f30f7de796928087ff4e0620d4f7f046d00f4d936e98e776c485e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c65723f636f6c6f723d626c7565266c6162656c3d76657273696f6e)[![GitHub Workflow Status](https://camo.githubusercontent.com/e01f8290610de3c9ffbd767da361768010e29118e8818324612633ecc2d79bcb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f797a656e2d6465762f6c61726176656c2d6c6f63616c2d6d61696c65722f52756e25323074657374733f6c6162656c3d7465737473266c6f676f3d676974687562)](https://camo.githubusercontent.com/e01f8290610de3c9ffbd767da361768010e29118e8818324612633ecc2d79bcb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f797a656e2d6465762f6c61726176656c2d6c6f63616c2d6d61696c65722f52756e25323074657374733f6c6162656c3d7465737473266c6f676f3d676974687562)[![Coverage](https://camo.githubusercontent.com/9ac1554afc4d6d0afadea92192b9549c3403b735de3a7ea031598888e9bf138d/68747470733a2f2f636f6465636f762e696f2f67682f797a656e2d6465762f6c61726176656c2d6c6f63616c2d6d61696c65722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d51414f3853544c504d49)](https://codecov.io/gh/yzen-dev/laravel-local-mailer)[![License](https://camo.githubusercontent.com/5a478809e3208c5b7db38bbf0572ad3d9056e2e6efaa24132a4c1986b16c7b30/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f797a656e2d6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)](https://camo.githubusercontent.com/5a478809e3208c5b7db38bbf0572ad3d9056e2e6efaa24132a4c1986b16c7b30/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f797a656e2d6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)[![Packagist Downloads](https://camo.githubusercontent.com/a887a7c15babe2ae2444f8bc6f52948ffc91323f28c3ba9f8e093406ff57dcaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)](https://camo.githubusercontent.com/a887a7c15babe2ae2444f8bc6f52948ffc91323f28c3ba9f8e093406ff57dcaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)[![Packagist Downloads](https://camo.githubusercontent.com/8ac6381ef0a19b15a85f933be22b9391c85d8d8fd32f85c45d1b9f495d2f06d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)](https://camo.githubusercontent.com/8ac6381ef0a19b15a85f933be22b9391c85d8d8fd32f85c45d1b9f495d2f06d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f6c61726176656c2d6c6f63616c2d6d61696c6572)

Each developer needs to check the sending of email messages during development. Most of them have their own ways - usage gmail, Mailtrap, laravel logs, etc.

This solution will create its own mail transport, saving emails as daily logs, with the ability to view!

[![image](https://user-images.githubusercontent.com/24630195/170493285-127b4211-3963-4bde-8bcf-3c6195fc6f49.png)](https://user-images.githubusercontent.com/24630195/170493285-127b4211-3963-4bde-8bcf-3c6195fc6f49.png)

📜 **Installation**
------------------

[](#scroll-installation)

The package can be installed via composer:

```
composer require yzen.dev/laravel-local-mailer

```

In the config **config/mail.php** add a new transport:

```
return [
    //...
    'mailers' => [
        //...
        'local-mailer' => [
            'transport' => 'local-mailer'
        ],
    ]
]
```

Now you can include this transport in the env:

```
MAIL_MAILER=local-mailer
```

The page for viewing is available at `{HOST}/local-mailer`. Here you can view the log for any date. For each log, the full email will be displayed - the title, to, contents of the letter (html page), attached files, etc.

[![image](https://user-images.githubusercontent.com/24630195/172157281-66206eee-b61b-48f9-b35b-e0387c48c683.png)](https://user-images.githubusercontent.com/24630195/172157281-66206eee-b61b-48f9-b35b-e0387c48c683.png)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Every ~10 days

Total

2

Last Release

1437d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ca07942b4d955ee72b1bc92220b1bc7686708d0f109ee4abf81f8fbd30732c3?d=identicon)[yzen.dev](/maintainers/yzen.dev)

---

Top Contributors

[![yzen-dev](https://avatars.githubusercontent.com/u/24630195?v=4)](https://github.com/yzen-dev "yzen-dev (7 commits)")

---

Tags

laravelmailtestingtransportlaravelmailmailerlocal

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yzendev-laravel-local-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/yzendev-laravel-local-mailer/health.svg)](https://phpackages.com/packages/yzendev-laravel-local-mailer)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[spatie/laravel-mail-preview

A mail driver to quickly preview mail

1.3k419.3k5](/packages/spatie-laravel-mail-preview)[hotmeteor/spectator

Testing helpers for your OpenAPI spec

3021.4M1](/packages/hotmeteor-spectator)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)[tkeer/mailbase

Catch laravel emails for local development

10616.8k](/packages/tkeer-mailbase)

PHPackages © 2026

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