| Package Data | |
|---|---|
| Maintainer Username: | sairiz |
| Maintainer Contact: | saiffil@mtouch.my (Saiffil Fariz) |
| Package Create Date: | 2014-02-14 |
| Package Last Update: | 2014-08-07 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-10 03:10:08 |
| Package Statistics | |
|---|---|
| Total Downloads: | 46,015 |
| Monthly Downloads: | 44 |
| Daily Downloads: | 0 |
| Total Stars: | 12 |
| Total Watchers: | 1 |
| Total Forks: | 4 |
| Total Open Issues: | 1 |
Install the package via composer
Add the following entry to the array of service providers found in app/config/app.php :
'Sairiz\Mandrill\MandrillServiceProvider',
Publish the config file to your app/config/ directory by running the following from command line in your project root :
php artisan config:publish sairiz/mandrill
Setup your api key at app/config/packages/sairiz/mandrill/config.php
Call any method using Facade alias (Email)
Example :
$message = array(
'subject' => 'Your subject here',
'html' => '<html><body>Your email body</body></html>',
'from_email' => 'yours@email.com',
'to' => array(array('email'=>'clients@email.com'))
);
$response = Email::messages()->send($message);
The first method is the call category while the chain method is the method within that category
Refer to the official documentation for full method at https://mandrillapp.com/api/docs/index.php.html