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

ActiveLibrary

helthe/mandrill
===============

Helthe Mandrill Component

027PHP

Since May 14Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Helthe Mandrill [![Build Status](https://camo.githubusercontent.com/95d46da89eadd1813a18b234e851608217ecd4c08305f21936b92755cd1637d8/68747470733a2f2f7472617669732d63692e6f72672f68656c7468652f4d616e6472696c6c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/helthe/Mandrill) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3fcb9b3b0f1243eac011023b7d1e7bd488ffa5fbb024e86e7c3b4bdf9a93a28d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68656c7468652f4d616e6472696c6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/helthe/Mandrill/?branch=master)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#helthe-mandrill--)

Helthe Mandrill is a client library for interacting with the [Mandrill](http://www.mandrill.com) API. It is currently designed to be a drop in alternative for sending emails with Mandrill. Features will be added over time to be closer to the official client library. However, for a feature complete client, you should use the official Mandrill [client library](https://bitbucket.org/mailchimp/mandrill-api-php).

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

[](#installation)

### Using Composer

[](#using-composer)

#### Manually

[](#manually)

Add the following in your `composer.json`:

```
{
    "require": {
        // ...
        "helthe/mandrill": "dev-master"
    }
}
```

#### Using the command line

[](#using-the-command-line)

```
$ composer require 'helthe/mandrill=dev-master'
```

Usage
-----

[](#usage)

### Client

[](#client)

The Mandrill client uses a [Guzzle](https://github.com/guzzle/guzzle) client for interacting with the Mandrill API and the Symfony [Serializer](https://github.com/symfony/serializer) for serializing the data. The serializer is expected to have [CustomNormalizer](http://api.symfony.com/master/Symfony/Component/Serializer/Normalizer/CustomNormalizer.html)and the [JsonEncoder](http://api.symfony.com/master/Symfony/Component/Serializer/Encoder/JsonEncoder.html).

```
use GuzzleHttp\Client as GuzzleClient;
use Helthe\Component\Mandrill\Client;
use Helthe\Component\Mandrill\Message\Message;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\CustomNormalizer;
use Symfony\Component\Serializer\Serializer.

// GuzzleHttp\ClientInterface
$guzzle = new GuzzleClient();
// Symfony\Component\Serializer\SerializerInterface
$serializer = new Serializer(array(new CustomNormalizer()), array(new JsonEncoder()));

$client = new Client($guzzle, $serializer, 'your_api_key');

$client->sendMessage(new Message('recipient@email.com', 'sender@email.com');
```

### Mailer

[](#mailer)

The mailer classes are design to hide internal workings of the library and offer a standard interface for sending messages. The package offers two mailer classes for you to use.

#### Mailer

[](#mailer-1)

The `Mailer` class is used when you want to send regular text/HTML messages.

#### TemplatingEngineMailer

[](#templatingenginemailer)

The `TemplatingEngineMailer` class is used when you want to render your message content with using a templating engine implementing the `EngineInterface`from the Symfony [Templating](https://github.com/symfony/templating) Component.

Bugs
----

[](#bugs)

For bugs or feature requests, please [create an issue](https://github.com/helthe/Mandrill/issues/new).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dc50dba9cc5e4bf097f44026034daa66e2ed552549ba363304ff22914f4c0d1?d=identicon)[carlalexander](/maintainers/carlalexander)

---

Top Contributors

[![carlalexander](https://avatars.githubusercontent.com/u/654684?v=4)](https://github.com/carlalexander "carlalexander (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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