PHPackages                             leondeng/laravel-batch-mailgun - 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. leondeng/laravel-batch-mailgun

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

leondeng/laravel-batch-mailgun
==============================

Enable batch sending of Mailgun transport for Laravel

v3.0.0(5y ago)516.3k[1 issues](https://github.com/leondeng/laravel-batch-mailgun/issues)MITPHPPHP ^7.2.5|^8.0

Since Apr 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/leondeng/laravel-batch-mailgun)[ Packagist](https://packagist.org/packages/leondeng/laravel-batch-mailgun)[ RSS](/packages/leondeng-laravel-batch-mailgun/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (0)

Laravel Batch Sending Emails With Mailgun
=========================================

[](#laravel-batch-sending-emails-with-mailgun)

Enable batch sending of Mailgun transport for Laravel

Background
----------

[](#background)

Laravel supports Mailgun transport, however it does not support the batch sending feature. Developers had to use Mailgun SDK for this. With this package, developers will be able to keep using Mailable classes with Mailgun batch sending.

Usage
-----

[](#usage)

### Require this package

[](#require-this-package)

```
composer require "leondeng/laravel-batch-mailgun"
```

### Configuration

[](#configuration)

After adding the package, replace the official MailServiceProvider in the providers array in `config/app.php`

```
Illuminate\Mail\MailServiceProvider::class
```

with

```
LeonDeng\LaravelBatchMailgun\MailServiceProvider::class
```

Then add batch\_sending flag in `config/mail.php`

```
'batch_sending' => env('MAIL_BATCH_SENDING', false),
```

Then set the env variable `MAIL_BATCH_SENDING` fro your environment.

License
-------

[](#license)

This package is licensed under the [MIT license](https://github.com/leondeng/laravel-batch-mailgun/blob/master/LICENSE.txt).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

8

Last Release

1889d ago

Major Versions

v1.1.0 → v2.0.02021-04-25

v2.0.1 → v3.0.02021-04-25

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

2.x-devPHP ^7.2.5|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1813c4831079645e7729d2f8c9db9f29af1838a4bd13c38f3d582f9f4d4fe033?d=identicon)[leondeng](/maintainers/leondeng)

---

Top Contributors

[![leondeng](https://avatars.githubusercontent.com/u/1560766?v=4)](https://github.com/leondeng "leondeng (9 commits)")

---

Tags

laravelmailbatchmailgun

### Embed Badge

![Health badge](/badges/leondeng-laravel-batch-mailgun/health.svg)

```
[![Health](https://phpackages.com/badges/leondeng-laravel-batch-mailgun/health.svg)](https://phpackages.com/packages/leondeng-laravel-batch-mailgun)
```

###  Alternatives

[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28165.8k](/packages/boundstate-yii2-mailgun)[modernmcguire/mailthief

A Laravel package to catch outbound mail (similar to Mailtrap) that also provides a UI to view them.

318.8k](/packages/modernmcguire-mailthief)

PHPackages © 2026

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