PHPackages                             dotblue/mandrill - 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. dotblue/mandrill

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

dotblue/mandrill
================

OO wrapper above Mandrill API for sending e-mails

v1.4.0(8y ago)1476.5k↓60%[2 issues](https://github.com/dotblue/Mandrill/issues)[1 PRs](https://github.com/dotblue/Mandrill/pulls)1BSD-3-ClausePHPPHP &gt;=5.4

Since Jan 27Pushed 6y ago4 watchersCompare

[ Source](https://github.com/dotblue/Mandrill)[ Packagist](https://packagist.org/packages/dotblue/mandrill)[ RSS](/packages/dotblue-mandrill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (9)Used By (1)

DotBlue\\Mandrill
=================

[](#dotbluemandrill)

This is an OO library wrapping around Mandrill API for sending messages. Enjoy!

Requirements
------------

[](#requirements)

PHP 5.4+ (we love short array syntax).

curl

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

[](#installation)

The easiest way is to use [Composer](http://getcomposer.org/):

```
$ composer require dotblue/mandrill@~1.2
```

Of course you can always clone this repository and commit it into your project manually.

Usage
-----

[](#usage)

```
$mandrill = new DotBlue\Mandrill\Mandrill($apiKey);
$mailer = new DotBlue\Mandrill\Mailer(new DotBlue\Mandrill\Exporters\MessageExporter(), $mandrill);

$message = new DotBlue\Mandrill\Message();
$message->setFrom('maesters@citadel.sif');
$message->subject = 'Winter is coming!';

$message->addTo('jeoffrey@baratheon.sif');
$message->addBcc('varys@spider.sif');
$message->addBcc('petyr@baelish.sif');

$message->html = 'Winter is coming!';
$message->text = 'Winter is coming!';

$mailer->send($message);
```

Similary you can send a template by using class `DotBlue\Mandrill\TemplateMessage` in combination with `DotBlue\Mandrill\Mailer::sendTemplate` method.

You can find more examples in [Documentation](docs/en)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% 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 ~283 days

Recently: every ~353 days

Total

6

Last Release

3080d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/920689f25a0fc31b2807556eddd47203f33c4318893bce98818cf2f3e627ee8e?d=identicon)[vojtechdobes](/maintainers/vojtechdobes)

---

Top Contributors

[![pavelkucera](https://avatars.githubusercontent.com/u/332800?v=4)](https://github.com/pavelkucera "pavelkucera (23 commits)")[![vysinsky](https://avatars.githubusercontent.com/u/3693578?v=4)](https://github.com/vysinsky "vysinsky (5 commits)")[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (3 commits)")[![iannsp](https://avatars.githubusercontent.com/u/40551?v=4)](https://github.com/iannsp "iannsp (1 commits)")

---

Tags

nettemandrille-mail

### Embed Badge

![Health badge](/badges/dotblue-mandrill/health.svg)

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

###  Alternatives

[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)[scullwm/mailhookbundle

A bundle to catch API webhook from differents mail service

4020.5k](/packages/scullwm-mailhookbundle)

PHPackages © 2026

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