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

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

techinasia/laravel-mandrill-notification-channel
================================================

Mandrill Notifications Channel for Laravel 5.3

v1.0.0(9y ago)424.9k10[3 issues](https://github.com/techinasia/laravel-mandrill-notification-channel/issues)MITPHPPHP &gt;=5.6.4CI failing

Since Feb 9Pushed 6y ago14 watchersCompare

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

READMEChangelogDependencies (8)Versions (2)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

30

—

LowBetter than 64% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e89f3bcb82d2e9f09655fdd31d4529225ef8112c0e48f4879aeb8276525351a8?d=identicon)[techinasia](/maintainers/techinasia)

---

Top Contributors

[![zyml](https://avatars.githubusercontent.com/u/1495648?v=4)](https://github.com/zyml "zyml (12 commits)")[![lesterchan](https://avatars.githubusercontent.com/u/355829?v=4)](https://github.com/lesterchan "lesterchan (2 commits)")[![rbresjer](https://avatars.githubusercontent.com/u/11976380?v=4)](https://github.com/rbresjer "rbresjer (1 commits)")

---

Tags

laravelmandrillphplaravelnotificationsmandrillchannel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 5, 6, 7, 8, 9, 10, 11, 12

1174.3k](/packages/salamwaddah-laravel-mandrill-driver)[laravel-notification-channels/rocket-chat

Rocket.Chat Notifications channel for Laravel 5.6+

1345.5k](/packages/laravel-notification-channels-rocket-chat)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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