PHPackages                             awsm3/mandrill-zend3 - 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. [API Development](/categories/api)
4. /
5. awsm3/mandrill-zend3

ActiveLibrary[API Development](/categories/api)

awsm3/mandrill-zend3
====================

A PHP client library for Mandrill's REST API for Zend Framework 3

3.0(8y ago)035MITPHPPHP &gt;=7.0

Since Oct 26Pushed 8y agoCompare

[ Source](https://github.com/AWSM3/mandrill-zend3)[ Packagist](https://packagist.org/packages/awsm3/mandrill-zend3)[ RSS](/packages/awsm3-mandrill-zend3/feed)WikiDiscussions master Synced today

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

Mandrill API for Zend Framework 3
=================================

[](#mandrill-api-for-zend-framework-3)

A PHP ZF3 client library for [Mandrill's API](https://mandrillapp.com/api/docs/).

This library provides all of the functionality present in the [official PHP client](https://bitbucket.org/mailchimp/mandrill-api-php/), but makes use of namespaces, provides helper classes to ease message sending and works with Zend Framework 3 (uses its library).

This library based on Joe Linn's library ().

Installation Using [Composer](http://getcomposer.org/)
======================================================

[](#installation-using-composer)

Assuming composer.phar is located in your project's root directory, run the following command:

```
composer require awsm3/mandrill-zend3
```

Usage
=====

[](#usage)

Sending a Message
-----------------

[](#sending-a-message)

```
/** @uses */
use Mandrill\Mandrill;
use Mandrill\Struct\Message;
use Mandrill\Struct\Recipient;

// instantiate a client object
$mandrill = new Mandrill('your_api_key');

// instantiate a Message object
$message = new Message();

// define message properties
$message->text = 'Hello, *|NAME|*!';
$message->subject = 'Test';
$message->from_email = 'test@example.com';
$message->from_name = 'Mandrill API Test';

// instantiate a Recipient object and add details
$recipient = new Recipient();
$recipient->email = 'recipient.email@example.com';
$recipient->name = 'Recipient Name';
$recipient->addMergeVar('NAME', $recipient->name);

// add the recipient to the message
$message->addRecipient($recipient);

// send the message
$response = $mandrill->messages()->send($message);
```

Sending a ZF3 Message
---------------------

[](#sending-a-zf3-message)

```
/** @uses */
use Mandrill\Mandrill;
use Mandrill\Struct\Message;

// convert from ZF message
// $zfMessage is instance of \Zend\Mail\Message
$message = Message::convertZFMail($zfMessage);

// add any field you want
$message->metadata = ...;

// instantiate a client object
$mandrill = new Mandrill('your_api_key');

// send the message
$response = $mandrill->messages()->send($message);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2964d ago

Major Versions

2.1 → 3.02018-03-31

PHP version history (2 changes)2.0PHP &gt;=5.5

3.0PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

mandrillZend Frameworkzf3Zend Framework 3

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.5k](/packages/davidhavl-dherrorlogging)[jlinn/mandrill-api-php

A PHP client library for Mandrill's REST API

24117.4k](/packages/jlinn-mandrill-api-php)[a2design-company/mandrill-cakephp-plugin

Mandrill CakePHP plugin

193.2k](/packages/a2design-company-mandrill-cakephp-plugin)

PHPackages © 2026

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