PHPackages                             beyondcode/laravel-mailbox - 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. beyondcode/laravel-mailbox

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

beyondcode/laravel-mailbox
==========================

Handle incoming emails in your Laravel application.

6.0.0(1mo ago)1.1k1.0M—4.1%128[29 issues](https://github.com/beyondcode/laravel-mailbox/issues)[1 PRs](https://github.com/beyondcode/laravel-mailbox/pulls)4MITPHPPHP ^8.1CI passing

Since Jan 22Pushed 1mo ago13 watchersCompare

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

READMEChangelog (10)Dependencies (21)Versions (23)Used By (4)

Laravel Mailbox 📬
=================

[](#laravel-mailbox-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/02e882ed7c418a260c2eebe38fe6a87cbf362aa9167d12f603243bc49d04c336/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265796f6e64636f64652f6c61726176656c2d6d61696c626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-mailbox)[![Total Downloads](https://camo.githubusercontent.com/9c8432fa4b65516834119c0395c8195ef74aa9265a9bf3aa87c8f28cf551c0f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265796f6e64636f64652f6c61726176656c2d6d61696c626f782e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/beyondcode/laravel-mailbox)

Handle incoming emails in your Laravel application.

```
Mailbox::from('{username}@gmail.com', function (InboundEmail $email, $username) {
    // Access email attributes and content
    $subject = $email->subject();

    $email->reply(new ReplyMailable);
});
```

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

[](#installation)

You can install the package via composer:

```
composer require beyondcode/laravel-mailbox
```

Usage
-----

[](#usage)

Take a look at the [official documentation](https://docs.beyondco.de/laravel-mailbox).

Catch, test and debug application mails with Laravel Herd
---------------------------------------------------------

[](#catch-test-and-debug-application-mails-with-laravel-herd)

Laravel Herd provides an integrated local email service, streamlining the process of testing and debugging application emails. The email service organizes emails into distinct inboxes for each application, ensuring they are easily accessible and simple to locate.

[herd.laravel.com](https://herd.laravel.com)

[![image](https://private-user-images.githubusercontent.com/26432041/420261151-6417907c-119d-43ac-9cf6-5638bafae24f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyNzk4MDgsIm5iZiI6MTc3NTI3OTUwOCwicGF0aCI6Ii8yNjQzMjA0MS80MjAyNjExNTEtNjQxNzkwN2MtMTE5ZC00M2FjLTljZjYtNTYzOGJhZmFlMjRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA1MTE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMTE1MmQxZjY2NzZkZjhjYjM0Mjc5YWY0OGNhYTU3MzUyOTBiOGJhYzM0YTUwZjhlZWM5NjExOWQwZGYzOGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EuvPDibe6uKy3M9MwZQdskc9PP1QJqSfkg8pYCk8DeU)](https://private-user-images.githubusercontent.com/26432041/420261151-6417907c-119d-43ac-9cf6-5638bafae24f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyNzk4MDgsIm5iZiI6MTc3NTI3OTUwOCwicGF0aCI6Ii8yNjQzMjA0MS80MjAyNjExNTEtNjQxNzkwN2MtMTE5ZC00M2FjLTljZjYtNTYzOGJhZmFlMjRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDA0VDA1MTE0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZlMTE1MmQxZjY2NzZkZjhjYjM0Mjc5YWY0OGNhYTU3MzUyOTBiOGJhYzM0YTUwZjhlZWM5NjExOWQwZGYzOGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EuvPDibe6uKy3M9MwZQdskc9PP1QJqSfkg8pYCk8DeU)

Testing
-------

[](#testing)

Inbound messages are parsed with [zbateson/mail-mime-parser](https://mail-mime-parser.org) (see the docs on [handling inbound email](https://docs.beyondco.de/laravel-mailbox/basic-usage/handling)). Run the package test suite with:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Marcel Pociot](https://github.com/mpociot)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance87

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community36

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~179 days

Total

19

Last Release

59d ago

Major Versions

1.4.1 → 2.0.02020-06-03

2.2.0 → 3.0.02022-12-20

3.1.0 → 4.0.02024-04-03

4.0.0 → 5.0.02025-03-07

5.0.2 → 6.0.02026-03-20

PHP version history (5 changes)1.0.0PHP ^7.1

2.0.0PHP ^7.3

2.2.0PHP ^7.3|^8.0

3.0.0PHP ^8.0

6.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/863e91ca13b8c4031f202c0eee4f06b3a4352f92cf9cd397b03609b20247ed16?d=identicon)[beyondcode](/maintainers/beyondcode)

---

Top Contributors

[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (80 commits)")[![mechelon](https://avatars.githubusercontent.com/u/26432041?v=4)](https://github.com/mechelon "mechelon (30 commits)")[![hailwood](https://avatars.githubusercontent.com/u/709773?v=4)](https://github.com/hailwood "hailwood (8 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (8 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (8 commits)")[![samtlewis](https://avatars.githubusercontent.com/u/1706265?v=4)](https://github.com/samtlewis "samtlewis (8 commits)")[![eXorus](https://avatars.githubusercontent.com/u/1255561?v=4)](https://github.com/eXorus "eXorus (7 commits)")[![radmen](https://avatars.githubusercontent.com/u/1190255?v=4)](https://github.com/radmen "radmen (3 commits)")[![Michael-Stokoe](https://avatars.githubusercontent.com/u/2981213?v=4)](https://github.com/Michael-Stokoe "Michael-Stokoe (3 commits)")[![davidrushton](https://avatars.githubusercontent.com/u/4039772?v=4)](https://github.com/davidrushton "davidrushton (3 commits)")[![clementmas](https://avatars.githubusercontent.com/u/8032241?v=4)](https://github.com/clementmas "clementmas (3 commits)")[![cwilby](https://avatars.githubusercontent.com/u/13686317?v=4)](https://github.com/cwilby "cwilby (2 commits)")[![asantibanez](https://avatars.githubusercontent.com/u/5126648?v=4)](https://github.com/asantibanez "asantibanez (2 commits)")[![ankurk91](https://avatars.githubusercontent.com/u/6111524?v=4)](https://github.com/ankurk91 "ankurk91 (2 commits)")[![io238](https://avatars.githubusercontent.com/u/26689138?v=4)](https://github.com/io238 "io238 (2 commits)")[![Yi-pixel](https://avatars.githubusercontent.com/u/31845646?v=4)](https://github.com/Yi-pixel "Yi-pixel (1 commits)")[![bardolf69](https://avatars.githubusercontent.com/u/47841636?v=4)](https://github.com/bardolf69 "bardolf69 (1 commits)")[![colinmackinlay](https://avatars.githubusercontent.com/u/7833362?v=4)](https://github.com/colinmackinlay "colinmackinlay (1 commits)")[![crishoj](https://avatars.githubusercontent.com/u/20393?v=4)](https://github.com/crishoj "crishoj (1 commits)")[![dniccum](https://avatars.githubusercontent.com/u/2816415?v=4)](https://github.com/dniccum "dniccum (1 commits)")

---

Tags

hacktoberfestlaravelmailmailgunsendgridbeyondcodelaravel-mailbox

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/beyondcode-laravel-mailbox/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[illuminate/notifications

The Illuminate Notifications package.

483.0M967](/packages/illuminate-notifications)[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)
