daruwanov / silex-provider-mandrill-messages
v0.1
2014-03-26 15:18 UTC
Requires
- mandrill/mandrill: 1.0.52
- silex/silex: >=1.0
Requires (Dev)
- phpunit/phpunit: ~3.5
This package is not auto-updated.
Last update: 2024-09-28 15:23:46 UTC
README
为 silex 微型框架提供的 Mandrill Messages 服务提供者。此提供者仅与 Mandrill_Messages 类实现关系。有关 mandrill\mandrill 的更多信息,请参阅此处:https://packagist.org.cn/packages/mandrill/mandrill
示例
<?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);
使用 Composer 安装
{ require: { "daruwanov/silex-provider-mandrill-messages": "dev-master" } }