LaravelPackages.net
Acme Inc.
Toggle sidebar
sairiz/mandrill

Mandrill Official API Wrapper for Laravel 4

46.472
12
1.0.4
About sairiz/mandrill

sairiz/mandrill is a Laravel package for mandrill official api wrapper for laravel 4. It currently has 12 GitHub stars and 46.472 downloads on Packagist (latest version 1.0.4). Install it with composer require sairiz/mandrill. Discover more Laravel packages by sairiz or browse all Laravel packages to compare alternatives.

Last updated

Mandrill Official API Wrapper for Laravel 4

Latest Stable Version Total Downloads License

Installation :

  1. Install the package via composer

  2. Add the following entry to the array of service providers found in app/config/app.php : 'Sairiz\Mandrill\MandrillServiceProvider',

  3. 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

  4. 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' => '[email protected]',
    'to' => array(array('email'=>'[email protected]'))
);

$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

Comments