sairiz / mandrill
Mandrill Official API Wrapper for Laravel 4
Installs: 45 592
Dependents: 1
Suggesters: 0
Security: 0
Stars: 12
Watchers: 2
Forks: 4
Open Issues: 1
Requires
- php: >=5.3.0
- illuminate/support: >=4.1
- mandrill/mandrill: 1.0.*
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2024-12-21 16:00:04 UTC
README
Installation :
-
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
Usage
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