robert-christopher/li3_mandrill

Li3 wrapper for Mandrill

Installs: 43

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Type:lithium-library

dev-master 2015-12-17 04:12 UTC

This package is not auto-updated.

Last update: 2024-05-25 17:06:33 UTC


README

#li3_mandrill

Mandrill Wrapper for LI3

##Installation

Get the library code:

$ cd /path/to/app/libraries
$ git clone https://github.com/Knodes/li3_mandrill.git

Make sure it's added on app/config/bootstrap/libraries.php with the path included:

Libraries::add('li3_mandrill', array(
  'includePath' => true,
));

##Configuration Make sure your environments have the Mandrill apikey setup as:

  • mandrill.apikey

##Usage li3_mandrill supplies you with a static class (li3_mandrill\core\Li3Mandrill) that's a basic wrapper to all methods the Mandrill PHP Client accepts.

On top of that it manages the instance of the Mandrill object automatically, so there's no need to create it manually.

##Example

use li3_mandrill\core\Li3Mandrill;

...
//instead of Mandrill->messages->send->( $message, $async ... ) use:
$res = Li3Mandrill::messages( 'send', $message, $async ... );