New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sairiz/mandrill

Mandrill Official API Wrapper for Laravel 4
46,476 12
Install
composer require sairiz/mandrill
Latest Version:1.0.4
PHP:>=5.3.0
Laravel:4
License:MIT
Last Updated:Aug 7, 2014
Links: GitHub  ·  Packagist
Maintainer: sairiz

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' => '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

Related Packages

therobfonz/laravel-mandrill-driver

Mandrill Driver for Laravel

4,036,465 78
spaanproductions/laravel-mandrill

Mandrill Mailer for Laravel 9+

4,552 0
kh411d/laravel-mandrill-wrapper

Laravel 4 mandrill wrapper

19 0
weblee/mandrill

Laravel 5 Mandrill API Wrapper

420,057 23
doxxon/laravel-mandrill-request

Mandrill transactional emails via Laravel 4

16,578 20

Version History

Version Released PHP Laravel License
1.0.4 >=5.3.0 >=4.1 MIT
1.0.3 >=5.3.0 >=4.1 MIT
1.0.2 >=5.3.0 4.1.* MIT
1.0.1 >=5.3.0 4.1.* MIT
1.0 >=5.3.0 4.1.* MIT