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(5mo ago)1.1k1.2M↓22.7%128[29 issues](https://github.com/beyondcode/laravel-mailbox/issues)[2 PRs](https://github.com/beyondcode/laravel-mailbox/pulls)6MITPHPPHP ^8.1CI failing

Since Jan 22Pushed 5mo 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 2w ago

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

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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODYxNjYzODYsIm5iZiI6MTc4NjE2NjA4NiwicGF0aCI6Ii8yNjQzMjA0MS80MjAyNjExNTEtNjQxNzkwN2MtMTE5ZC00M2FjLTljZjYtNTYzOGJhZmFlMjRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODA4VDA1MTQ0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5NjYzNzU3ZTdkZjU2YWE1YTFjOTUwNjYyM2Y4NzliMGMyODVhNzNhZWYxZDFlNDIxMmVkNTkyZDRhZTY2ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.efb5jz9vEOiNUFidYo-4eRht1s8nulRPlBnMHC-nNDM)](https://private-user-images.githubusercontent.com/26432041/420261151-6417907c-119d-43ac-9cf6-5638bafae24f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODYxNjYzODYsIm5iZiI6MTc4NjE2NjA4NiwicGF0aCI6Ii8yNjQzMjA0MS80MjAyNjExNTEtNjQxNzkwN2MtMTE5ZC00M2FjLTljZjYtNTYzOGJhZmFlMjRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwODA4VDA1MTQ0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5NjYzNzU3ZTdkZjU2YWE1YTFjOTUwNjYyM2Y4NzliMGMyODVhNzNhZWYxZDFlNDIxMmVkNTkyZDRhZTY2ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.efb5jz9vEOiNUFidYo-4eRht1s8nulRPlBnMHC-nNDM)

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

67

—

FairBetter than 99% of packages

Maintenance72

Regular maintenance activity

Popularity64

Solid adoption and visibility

Community40

Growing community involvement

Maturity80

Battle-tested with a long release history

 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

152d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[laravel/cashier

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

2.6k31.8M162](/packages/laravel-cashier)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M327](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

79227.1M231](/packages/laravel-mcp)

PHPackages © 2026

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