Package Data | |
---|---|
Maintainer Username: | alairock |
Maintainer Contact: | skyler.lewis@canopytax.com (CanopyTax) |
Package Create Date: | 2014-10-23 |
Package Last Update: | 2016-06-14 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-05-15 15:11:02 |
Package Statistics | |
---|---|
Total Downloads: | 177 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 36 |
Total Forks: | 2 |
Total Open Issues: | 1 |
Laravel Mandrill plugin!
Version 1.x - For Laravel 4.x
Version 2.x - For Laravel 5.x
This plugin for laravel is based heavily on the plugin by MichMich but made for composer and some other goodies.
This package is a simple wrapper for working w/ the Mandrill API.
Begin by installing this package through Composer. Edit your project's composer.json
file to require CanopyTax/laramandrill
.
"require": {
"CanopyTax/laramandrill": "~2.0"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider. Open config/app.php
, and add a new item to the providers array.
'CanopyTax\Laramandrill\LaramandrillServiceProvider'
Add this line to aliases
array in your config/app.php
'Laramandrill' => 'CanopyTax\Laramandrill\Facades\Laramandrill'
Lastly you need to add your Mandrill API key. Generate the config file and edit it inside {root}/config/laramandrill.php
Call the desired method and pass the params as a single array. Don't worry about passing the API key.
$response = Laramandrill::request('post', 'messages/send', array(
'message' => array(
'html' => 'Body of the message.',
'subject' => 'Subject of the message.',
'from_email' => 'monkey@somewhere.com',
'to' => array(array('email'=>'foo@bar.com')),
),
));