PHPackages                             sukohi/mail-catcher - 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. sukohi/mail-catcher

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

sukohi/mail-catcher
===================

A Laravel package to forcely change email address to send for email testing.

2.0.0(10y ago)019MITPHP

Since May 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/laravel-mail-catcher)[ Packagist](https://packagist.org/packages/sukohi/mail-catcher)[ RSS](/packages/sukohi-mail-catcher/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

laravel-mail-catcher
====================

[](#laravel-mail-catcher)

A Laravel package to forcedly change sending email address when email testing.
(This is for Laravel 5+. [For Laravel 4.2](https://github.com/SUKOHI/laravel-mail-catcher/tree/1.0))

Installation
============

[](#installation)

Execute composer command.

```
composer require sukohi/mail-catcher:2.*

```

Replace the service provider in app.php

`Illuminate\Mail\MailServiceProvider::class` to `Sukohi\MailCatcher\MailCatcherServiceProvider::class`

Also alias

`'Mail' => Illuminate\Support\Facades\Mail::class` to `'Mail' => Sukohi\MailCatcher\Facades\Mailer::class`

Usage
=====

[](#usage)

You can use \\Mail::send() as well as before.
However if `config/mail.php` has `mail_catcher` value like the below, sending email address will change forcedly.

```
return array(

    // Others

    'mail_catcher' => client@example.com

);

```

or you can set multiple email addresses.

```
return array(

    // Others

    'mail_catcher' => [
        'client@example.com',
        'client2@example.com',
    ]

);

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2016 Sukohi Kuhoh

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3693d ago

Major Versions

1.0.x-dev → 2.0.02016-05-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-mail-catcher/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-mail-catcher/health.svg)](https://phpackages.com/packages/sukohi-mail-catcher)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k41.3M38.9k](/packages/orchestra-testbench)[hotmeteor/spectator

Testing helpers for your OpenAPI spec

3051.5M1](/packages/hotmeteor-spectator)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[guanguans/laravel-soar

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

2228.3k](/packages/guanguans-laravel-soar)[spurwork/spectator

Testing helpers for your OpenAPI spec

3041.5k](/packages/spurwork-spectator)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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