PHPackages                             vtalbot/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. vtalbot/mailgun

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

vtalbot/mailgun
===============

Mailgun for Laravel 4 (Illuminate)

117634[1 issues](https://github.com/vtalbot/mailgun/issues)PHP

Since Jan 22Pushed 7y ago3 watchersCompare

[ Source](https://github.com/vtalbot/mailgun)[ Packagist](https://packagist.org/packages/vtalbot/mailgun)[ RSS](/packages/vtalbot-mailgun/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Mailgun for Laravel 4 (Illuminate)
==================================

[](#mailgun--for-laravel-4-illuminate)

[![Build Status](https://camo.githubusercontent.com/27af61af64547cb44986ee922cf99bb340da7ca93f6ccd06873aaf9cb712b0f8/68747470733a2f2f7472617669732d63692e6f72672f456c6c69636f6d2f6d61696c67756e2e706e67)](https://travis-ci.org/Ellicom/mailgun)

### Installation

[](#installation)

Run `php artisan config:publish ellicom/mailgun`

Then edit `config.php` in `app/packages/ellicom/mailgun` to your needs.

Add `'Ellicom\Mailgun\MailgunServiceProvider',` to `providers` in `app/config/app.php`and `'Mailgun' => 'Ellicom\Mailgun\Facades\Mailgun',` to `aliases` in `app/config/app.php`

### Usage

[](#usage)

```
$app['mailgun']->message(function($mail)
{
    $mail->from = 'email@email.com';
    $mail->to = 'email@email.com';
    $mail->subject = 'test';
    $mail->text = 'content';
})->deliver();

```

Simple.

#### Available methods for `$app['mailgun']`:

[](#available-methods-for-appmailgun)

- **message**: [Send messages](http://documentation.mailgun.net/api-sending.html) (post)
- **unsubscribe**: [Unsubscribe an address](http://documentation.mailgun.net/api-unsubscribes.html) (post)
- **unsubscribes**: [Get unsubscribes list](http://documentation.mailgun.net/api-unsubscribes.html) (get)
- **complaint**: [Add add address to spam complaints](http://documentation.mailgun.net/api-complaints.html) (post)
- **complaints**: [Get spam complaints list](http://documentation.mailgun.net/api-complaints.html) (get)
- **bounce**: [Add a bounce](http://documentation.mailgun.net/api-bounces.html) (post)
- **bounces**: [Get bounces list](http://documentation.mailgun.net/api-bounces.html) (get)
- **stats**: [Get stats](http://documentation.mailgun.net/api-stats.html) (get)
- **log**: [Get logs](http://documentation.mailgun.net/api-logs.html) (get)
- **route**: [Add route](http://documentation.mailgun.net/api-routes.html) (post)
- **routes**: [Get routes list](http://documentation.mailgun.net/api-routes.html) (get)
- **mailbox**: [Add mailbox](http://documentation.mailgun.net/api-mailboxes.html) (post)
- **mailboxes**: [Get mailboxes](http://documentation.mailgun.net/api-mailboxes.html) (get)
- **campaign**: [Add campaign](http://documentation.mailgun.net/api-campaigns.html) (post)
- **campaigns**: [Get campaigns lists](http://documentation.mailgun.net/api-campaigns.html) (get)
- **list**: [Add mailing list](http://documentation.mailgun.net/api-mailinglists.html) (post)
- **lists**: [Get mailing lists](http://documentation.mailgun.net/api-mailinglists.html) (get)

**You can change function behavior**

```
$mail->delete(); // Call DELETE
$mail->put(); // Call PUT
$mail->post(); // Call POST
$mail->get(); // Call GET

```

And set parameters by using the parameter name in the documentation on each methods.

**Use `$mail->param('o:dkim', 'value')` when the parameter has special caracters.**

```
$mail->attachment = 'image'; // create an attachment key in parameters
$mail->attachment = 'image2'; // transform attachment parameters in array and add image2

$mail->path('more'); // Will add 'more' after the url (eg. https://api.mailgun.net/v2/domain.com/complaints/more)

```

### Todo

[](#todo)

Add tests.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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://www.gravatar.com/avatar/cd5ebc77c8a034abfc360655e03bc390ede754e1d9fddecffe3a17fb0f356d12?d=identicon)[vtalbot](/maintainers/vtalbot)

---

Top Contributors

[![vtalbot](https://avatars.githubusercontent.com/u/1474848?v=4)](https://github.com/vtalbot "vtalbot (4 commits)")[![m-kirstetter](https://avatars.githubusercontent.com/u/2749852?v=4)](https://github.com/m-kirstetter "m-kirstetter (1 commits)")

### Embed Badge

![Health badge](/badges/vtalbot-mailgun/health.svg)

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

###  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)
