PHPackages                             lonesta/laravel-mandrill-notification-channel - 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. lonesta/laravel-mandrill-notification-channel

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

lonesta/laravel-mandrill-notification-channel
=============================================

Mandrill Notifications Channel for Laravel 5.3

v1.0.2(8y ago)020MITPHPPHP &gt;=5.6.4

Since Feb 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lonesta/laravel-mandrill-notification-channel)[ Packagist](https://packagist.org/packages/lonesta/laravel-mandrill-notification-channel)[ Docs](https://github.com/techinasia/laravel-mandrill-notification-channel)[ RSS](/packages/lonesta-laravel-mandrill-notification-channel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

Mandrill Notification Channel for Laravel
=========================================

[](#mandrill-notification-channel-for-laravel)

[![Dependency Status](https://camo.githubusercontent.com/2f55b550462a63cc7f02ce80f6492fa4e62f401fa2e8a5f3312337359c05538f/68747470733a2f2f67656d6e617369756d2e636f6d2f74656368696e617369612f6c61726176656c2d6d616e6472696c6c2d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://gemnasium.com/techinasia/laravel-mandrill-notification-channel)[![Build Status](https://camo.githubusercontent.com/7170832c1fcbaa253ab8de9802c0a662d2d3bcc44b82326d935aa0d49d44b831/68747470733a2f2f7472617669732d63692e6f72672f74656368696e617369612f6c61726176656c2d6d616e6472696c6c2d6e6f74696669636174696f6e2d6368616e6e656c2e737667)](https://travis-ci.org/techinasia/laravel-mandrill-notification-channel)[![Coverage Status](https://camo.githubusercontent.com/9f2024d2992b28b450970d592a5a8a5e2eff8a6c1e94a23037e868a10308c2f7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f74656368696e617369612f6c61726176656c2d6d616e6472696c6c2d6e6f74696669636174696f6e2d6368616e6e656c2f62616467652e737667)](https://coveralls.io/github/techinasia/laravel-mandrill-notification-channel)[![StyleCI Status](https://camo.githubusercontent.com/407b9ddf5e8f3c8d5f7607b0e1d345f655657e2e05d448f3ebc2d02a0bbc8ff6/68747470733a2f2f7374796c6563692e696f2f7265706f732f37353831303135352f736869656c64)](https://styleci.io/repos/75810155)

> Use Laravel 5.3 notifications to send mail via Mandrill.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up Mandrill](#setting-up-mandrill)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

Install this package with Composer:

```
composer require techinasia/laravel-mandrill-notification-channel
```

Register the service provider in your `config/app.php`:

```
NotificationChannels\Mandrill\MandrillServiceProvider::class
```

### Setting up Mandrill

[](#setting-up-mandrill)

Add your API key to your configuration at `config/services.php`:

```
'mandrill' => [
    'secret' => env('MANDRILL_SECRET', ''),
],
```

Usage
-----

[](#usage)

Send mails via Mandrill in your notification:

```
use NotificationChannels\Mandrill\MandrillChannel;
use NotificationChannels\Mandrill\MandrillMessage;
use Illuminate\Notifications\Notification;

class TestNotification extends Notification
{
    public function via($notifiable)
    {
        return [MandrillChannel::class];
    }

    public function toMandrill($notifiable)
    {
        return (new MandrillMessage())
            ->template('foo-bar', ['foo' => 'bar']);
    }
}
```

You need to specify the email address and name of the notifiable by defining a `routeNotificationForMandrill` method on the entity:

```
/**
 * Route notifications for the Mandrill channel.
 *
 * @return array
 */
public function routeNotificationForMandrill()
{
    return [
        'email' => $this->email,
        'name' => $this->name
    ];
}
```

You can also specify multiple recipients by supplying an list similar to the `to[]` struct of [Mandrill API](https://mandrillapp.com/api/docs/messages.php.html):

```
/**
 * Route notifications for the Mandrill channel.
 *
 * @return array
 */
public function routeNotificationForMandrill()
{
    return [
        [
            'email' => 'a@bar.com',
            'name' => 'User A',
            'type' => 'to',
        ],
        [
            'email' => 'b@bar.com',
            'name' => 'User B',
            'type' => 'cc',
        ]
    ];
}
```

### Available Message methods

[](#available-message-methods)

- `template(string $name, array $content)`: Sets the template name and content of the message. If this is set, `send-template` will be used instead of `send`.

The following methods work the same as the parameters in `send` and `send-template` calls from the [Mandrill API](https://mandrillapp.com/api/docs/messages.php.html).

- `async(bool $value = true)`: Enable a background sending mode that is optimized for bulk sending.
- `ip_pool(string $name)`: Name of the dedicated ip pool that should be used to send the message.
- `send_at(DateTime $datetime)`: Date / time of when to send the message. Object will be converted to UTC.

You can set any attributes of the `message` struct by calling the name of attribute in camel case with the value as the parameter:

```
return (new MandrillMessage())
    ->subject('Test Subject')
    ->mergeLanguage('handlebars');
```

Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~180 days

Total

3

Last Release

3065d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7000388?v=4)[Ilya Lozhkin](/maintainers/lonesta)[@lonesta](https://github.com/lonesta)

---

Top Contributors

[![zyml](https://avatars.githubusercontent.com/u/1495648?v=4)](https://github.com/zyml "zyml (12 commits)")[![lonesta](https://avatars.githubusercontent.com/u/7000388?v=4)](https://github.com/lonesta "lonesta (3 commits)")

---

Tags

laravelnotificationsmandrillchannel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lonesta-laravel-mandrill-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/lonesta-laravel-mandrill-notification-channel/health.svg)](https://phpackages.com/packages/lonesta-laravel-mandrill-notification-channel)
```

###  Alternatives

[laravel-notification-channels/discord

Laravel notification driver for Discord.

2381.4M13](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281770.7k1](/packages/laravel-notification-channels-pusher-push-notifications)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.1M15](/packages/laravel-notification-channels-twilio)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 9, 10, 11, 12, 13

1176.4k](/packages/salamwaddah-laravel-mandrill-driver)

PHPackages © 2026

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