PHPackages                             nordsoftware/lumen-mandrill-mailer - 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. nordsoftware/lumen-mandrill-mailer

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

nordsoftware/lumen-mandrill-mailer
==================================

Mandrill mailer for the Lumen PHP framework.

0.1.1(10y ago)42.5kMITPHP

Since Mar 1Pushed 10y ago11 watchersCompare

[ Source](https://github.com/nordsoftware/lumen-mandrill-mailer)[ Packagist](https://packagist.org/packages/nordsoftware/lumen-mandrill-mailer)[ RSS](/packages/nordsoftware-lumen-mandrill-mailer/feed)WikiDiscussions master Synced 2mo ago

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

lumen-mandrill-mailer
=====================

[](#lumen-mandrill-mailer)

Mandrill mailer for the Lumen PHP framework.

Send email messages via the Mandrill API, either with a template, or plain emails.

Install
=======

[](#install)

```
// .env:
MANDRILL_API_KEY=
MANDRILL_PRETEND=

// config/mandrillmailer.php
return [
    'secret' => env('MANDRILL_API_KEY'),
    'pretend' => env('MANDRILL_PRETEND', false),
];

// bootstrap/app.php
...
$app->configure('mandrillmailer');
...
$app->register(Nord\Lumen\Mandrill\Mailer\MandrillMailServiceProvider::class);

```

Usage
=====

[](#usage)

You can add support for sending Mandrill emails to any part of your application. Use the `SendsEmails` trait to do so:

```
...
use \Nord\Lumen\Mandrill\Mailer\App\SendsEmails;
...

```

Then later on in your code, you may use the functions `$this->sendRaw(MandrillMailMessage $message)` to send raw message, or `$this->sendTemplate(MandrillMailMessage $message)` to send a template email. You will need to construct the message to be sent:

```
...
$message = new \Nord\Lumen\Mandrill\Mailer\Infrastructure\MandrillMailMessage(
    ['Recipient Name' => 'email@recipient.com'], // To address.
    ['From Name' => 'email@from.com'], // From address.
    'Email Subject', // Subject.
    [ // Message body.
        'html' => 'Message body HTML',
        'text' => 'Message body plain text',
        'data' => [
            'templateVariableName' => 'TemplateVariableValue',
            'firstName' => 'First Name',
            'lastName' => 'Last Name',
            ...
        ],
    ],
    'template-name', // Mandrill template name. Optional.
    [
        'templateContent' // Template content. Optional.
    ],
    'cc@email.com', // CC Address. Optional.
    'bcc@email.com', // BCC Address. Optional.
    [ // Attachments. Optional.
        [
            'type' => 'image/png', // Required field.
            'name' => 'attachment1.png', // Required field.
            'content' => base64_encode(file_get_contents(/full/path/to/attachment1.png)), // Required field.
        ],
        [
            'type' => 'image/png',
            'name' => 'attachment2.png',
            'content' => base64_encode(file_get_contents(/full/path/to/attachment2.png)),
        ],
    ],
    [ // Headers. Optional
        'Reply-To' => 'reply-to@email.com',
    ],
    [ // Images. Optional.
        [
            'type' => 'image/png', // Required field.
            'name' => 'image1.png', // Required field.
            'content' => base64_encode(file_get_contents(/full/path/to/image1.png)), // Required field.
        ],
    ],
);
...

```

License
=======

[](#license)

See [LICENSE](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

2

Last Release

3725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f766f3d06300e4e58806cac328ec6774408e2782497f3624f6112e0838bd057?d=identicon)[soderluk](/maintainers/soderluk)

---

Top Contributors

[![soderluk](https://avatars.githubusercontent.com/u/6086071?v=4)](https://github.com/soderluk "soderluk (1 commits)")

### Embed Badge

![Health badge](/badges/nordsoftware-lumen-mandrill-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/nordsoftware-lumen-mandrill-mailer/health.svg)](https://phpackages.com/packages/nordsoftware-lumen-mandrill-mailer)
```

###  Alternatives

[slot/mandrill-bundle

Symfony Mandrill Bundle

671.5M1](/packages/slot-mandrill-bundle)[ebizmarts/magento2-mandrill

Connect Mandrill with Magento

36206.8k2](/packages/ebizmarts-magento2-mandrill)

PHPackages © 2026

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