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

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

fabian/mandrill
===============

Mandrill API library with Message class implementation like in Nette framework

v2.0.1(8y ago)69.3k6[1 issues](https://github.com/fabiancz/mandrill-nette/issues)[1 PRs](https://github.com/fabiancz/mandrill-nette/pulls)MITPHPPHP &gt;=5.3.0

Since Aug 3Pushed 6y ago3 watchersCompare

[ Source](https://github.com/fabiancz/mandrill-nette)[ Packagist](https://packagist.org/packages/fabian/mandrill)[ RSS](/packages/fabian-mandrill/feed)WikiDiscussions master Synced 3w ago

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

[Mandrill](http://mandrill.com) API library with Message class implementation like in Nette framework.

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

[](#requirements)

- PHP 5.3
- [Mandrill API key](https://mandrillapp.com/settings/index)
- [Nette framework](http://nette.org)

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

[](#installation)

The best way to install is using [Composer](http://getcomposer.org/):

```
$ composer require fabian/mandrill
```

If you'r using older Nette with Nette\\Mail version &lt;=2.3.0, you have to use mandrill-nette version 1.1.0:

```
$ composer require fabian/mandrill:1.1.0
```

Usage
-----

[](#usage)

Add Mandrill API key to your parameters in your config.neon:

```
parameters:
  mandrill:
    apiKey: yourApiKey
```

Then you can use MandrillMailer:

```
$mail = new \Fabian\Mandrill\Message();
$mail->addTo('joe@example.com', 'John Doe')
   ->setSubject('First email')
   ->setBody("Hi,\n\nthis is first email using Mandrill.")
   ->setFrom('noreplay@yourdomain.com', 'Your Name')
   ->addTag('test-emails');
$mailer = new \Fabian\Mandrill\MandrillMailer(
    $this->context->parameters['mandrill']['apiKey']
);
$mailer->send($mail);
```

You can use \\Nette\\Mail\\Message too:

```
$mail = new \Nette\Mail\Message;
$mail->addTo('joe@example.com', 'John Doe')
   ->setSubject('First email')
   ->setBody("Hi,\n\nthis is first email using Mandrill.")
   ->setFrom('noreplay@yourdomain.com', 'Your Name')
$mailer = new \Fabian\Mandrill\MandrillMailer(
    $this->context->parameters['mandrill']['apiKey']
);
$mailer->send($mail);
```

### Mandrill templates

[](#mandrill-templates)

If you'r using [templates](https://mandrill.zendesk.com/hc/en-us/articles/205582507-Getting-Started-with-Templates), you can send email using sendTemplate() instead of send():

```
$mailer->sendTemplate($mail, 'template_name', array(
    array('name' => 'header', 'content' => 'testing header'),
));
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~150 days

Recently: every ~188 days

Total

6

Last Release

2944d ago

Major Versions

v1.1.0.x-dev → v2.0.02016-05-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1045330?v=4)[fabiancz](/maintainers/fabiancz)[@fabiancz](https://github.com/fabiancz)

---

Top Contributors

[![fabiancz](https://avatars.githubusercontent.com/u/1045330?v=4)](https://github.com/fabiancz "fabiancz (14 commits)")[![kraag22](https://avatars.githubusercontent.com/u/1721419?v=4)](https://github.com/kraag22 "kraag22 (1 commits)")[![michael-kuk](https://avatars.githubusercontent.com/u/11670029?v=4)](https://github.com/michael-kuk "michael-kuk (1 commits)")

---

Tags

apinetteemail

### Embed Badge

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

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

###  Alternatives

[ecomailcz/ecomail

Ecomail.cz API Wrapper

17406.7k4](/packages/ecomailcz-ecomail)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

15122.2k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

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