PHPackages                             agouticreative/laravel-mailcatcher - 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. agouticreative/laravel-mailcatcher

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

agouticreative/laravel-mailcatcher
==================================

A service provider for Alexandre Salome's PHP Mailcatcher SDK

03.3k↓50%PHP

Since Jun 15Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-mailcatcher
===================

[](#laravel-mailcatcher)

A Laravel service provider that returns the data on a Mailcatcher instance as an Eloquent collection of models.

Most of the heavy lifting is done by [Mailcatcher SDK for PHP](https://github.com/alexandresalome/mailcatcher)

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

[](#installation)

1. install [Mailcatcher](https://mailcatcher.me/).
2. from the root of your project, run this command: `composer install https://github.com/agouticreative/laravel-mailcatcher`
3. Add `Agouti\LaravelMailcatcher\ServiceProvider::class` to the `providers` array in **config/app.php**
4. Add `'Mailcatcher' => Agouti\LaravelMailcatcher\Facade::class` to the `aliases` array in **config/app.php**
5. from the root of your project run this command: `php artisan vendor:publish`
6. If your Mailcatcher instance is reached at a port and location combination different from ** then change the *url* propery in **config/mailcatcher.php** to reflect the correct location

Usage
-----

[](#usage)

Use `Mailcatcher::search()` to search the Mailcatcher instance for messages. Search takes an array of filtering arguments in the manner of the aforementioned Mailcatcher PHP SDK. Refer to that repo's instructions to learn more. A simple `Mailcatcher::search()` will return *all* messages on Mailcatcher.

The messages' models will have these attributes:

- id (integer)
- sender (array with *name* and *email* keys)
- recipients (array of arrays with *name* and *email* keys)
- subject (string)
- content (string)
- url (a URL for viewing the content of the message, like . This is particuarly useful for PHPUnit or Selenium testing.)

*Attachments are not yet supported.*

The original message object from the SDK is available as the *messageObject* property on the message model ($collection\[0\]-&gt;messageObject, for example)

Both the model and the collection have a *delete* method that will delete messages on Mailcatcher. **delete on the collection completely clears out mailcatcher! be careful!**

### This is an alpha release

[](#this-is-an-alpha-release)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1686131?v=4)[Agouti Creative](/maintainers/agouticreative)[@agouticreative](https://github.com/agouticreative)

---

Top Contributors

[![travismorrison](https://avatars.githubusercontent.com/u/1696168?v=4)](https://github.com/travismorrison "travismorrison (10 commits)")

### Embed Badge

![Health badge](/badges/agouticreative-laravel-mailcatcher/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[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)

PHPackages © 2026

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