daruwanov/silex-provider-mandrill-messages

v0.1 2014-03-26 15:18 UTC

This package is not auto-updated.

Last update: 2024-04-27 13:15:26 UTC


README

Mandrill Messages service provider for silex micro-framework. This provider implement relations only with Mandrill_Messages class. For more information about mandrill\mandrill, please check here: https://packagist.org/packages/mandrill/mandrill

Example

<?php

use Silex\Application;
use Daruwanov\Provider\MandrillMessagesServiceProvider;

$app = new Application();
$app->register(new MandrillMessagesServiceProvider(), array(
            "mandrill" => array(
                'password'=>$password
              )
));

$m = $app['mandrill.messages'];
$m->sendTemplate($templatename, $templatedata, $messageData);

Install with Composer

{
require: {
             "daruwanov/silex-provider-mandrill-messages": "dev-master"
         }
}