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

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

stolfam/mandrill
================

Easy-to-use PHP library for sending emails with Mandrill.

v1.3.2(2y ago)015MITPHPPHP &gt;= 7.1.0

Since May 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/stolfam/mandrill-mailer-php)[ Packagist](https://packagist.org/packages/stolfam/mandrill)[ RSS](/packages/stolfam-mandrill/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Mandrill Mailer
===============

[](#mandrill-mailer)

Easy-to-use PHP library for sending emails with Mandrill.

[![Latest Stable Version](https://camo.githubusercontent.com/f7bc36fea2c2f8ee3281e5c6c418ea22d07719f40cb61ea5ea593a2724a64d72/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f762f737461626c65)](https://packagist.org/packages/ataccama/mandrill) [![Total Downloads](https://camo.githubusercontent.com/7428c78853072a8fd7e92a10e03252a85cf643c5a9bf5b411e8ae69360c440ef/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f646f776e6c6f616473)](https://packagist.org/packages/ataccama/mandrill) [![Latest Unstable Version](https://camo.githubusercontent.com/323b83ea6affec14a40c5c66db654da3cf18e91c61c5c5957d5c393bf7c72401/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f762f756e737461626c65)](https://packagist.org/packages/ataccama/mandrill) [![License](https://camo.githubusercontent.com/29299983c276d92db1382eae86044ad04f62467f2ba28367b320f10031a28876/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f6c6963656e7365)](https://packagist.org/packages/ataccama/mandrill) [![Monthly Downloads](https://camo.githubusercontent.com/fa1c0db5f4e0819400df99bf358c6135d763556b7883550d0152effc033c6ac6/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f642f6d6f6e74686c79)](https://packagist.org/packages/ataccama/mandrill) [![Daily Downloads](https://camo.githubusercontent.com/60ed312739a04a1623689cf43bf675646f34b09c33272137342f17391486fc53/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f642f6461696c79)](https://packagist.org/packages/ataccama/mandrill) [![composer.lock](https://camo.githubusercontent.com/7091f1e2fb647d24bb0701b5c157382b6aa187274a07ae338c7acb476f65f834/68747470733a2f2f706f7365722e707567782e6f72672f6174616363616d612f6d616e6472696c6c2f636f6d706f7365726c6f636b)](https://packagist.org/packages/ataccama/mandrill)

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

[](#installation)

```
composer require ataccama/mandrill

```

Usage
-----

[](#usage)

```
$mandrill = new Ataccama\MandrillMailer(API_KEY, SUB_ACCOUNT);
```

### Send Mandrill template

[](#send-mandrill-template)

```
$mandrill
    ->addFrom('email@address.com', 'Name')
    ->addTo('email@address.com')
    ->setSubject('Email subject')
    ->templateName('tmp-name');
```

#### Add variables to template

[](#add-variables-to-template)

```
$mandrill->addAttributes([
   'variable_key_1' => 'variable 1 content',
   'variable_key_2' => 'variable 2 content'
]);
```

### Add attachments

[](#add-attachments)

```
addAttachment("filename.txt", "file content")
```

### Send basic html email

[](#send-basic-html-email)

```
$mandrill
    ->addFrom('email@address.com')
    ->addTo('email@address.com', 'Name')
    ->setSubject('Events confirmation')
    ->setHtmlBody('Love youSoo much!');
```

### Send

[](#send)

```
$mandrill->send();
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

770d ago

### Community

Maintainers

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

---

Top Contributors

[![stolfam](https://avatars.githubusercontent.com/u/37073073?v=4)](https://github.com/stolfam "stolfam (3 commits)")

### Embed Badge

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

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

###  Alternatives

[slot/mandrill-bundle

Symfony Mandrill Bundle

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

Connect Mandrill with Magento

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

Mandrill Official API Wrapper for Laravel 4

1246.4k](/packages/sairiz-mandrill)

PHPackages © 2026

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