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

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

weblee/mandrill
===============

Laravel 5 Mandrill API Wrapper

23415.9k↓37.5%4[5 issues](https://github.com/weblee/Mandrill/issues)1PHP

Since Apr 5Pushed 10y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

Mandrill
========

[](#mandrill)

Simple Mandrill API wrapper for Laravel 5.

This packages gives you the ability to fully interact with Mandrill api ie, sending email via templates, getting user data, adding emails to blacklist...

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

[](#requirements)

Laravel 5 &amp; PHP 5.3 and later.

Documentation
-------------

[](#documentation)

[Full Mandrill API documentation can be found here.](https://mandrillapp.com/api/docs/index.php.html)

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

[](#installation)

Per usual, install Commander through Composer.

```
"require": {
	"weblee/mandrill": "dev-master"
}

```

Next, update `config/services.php` with your Mandrill API key. You are better off using Laravel env file to store you key.

```
	'mandrill' => [
		'secret' => env('MANDRILL_KEY'),
	],
```

Now you are ready to register the service provider and facade if you wish `config/app.php`.

```
	'providers' => [
		......
		Weblee\Mandrill\MandrillServiceProvider::class,
	],

	'aliases' => [
		......
		'MandrillMail'  => Weblee\Mandrill\MandrillFacade::class
	]
```

Usage
-----

[](#usage)

Either inject the service into your construct or class method or use the supplied facade.

Examples:

```
