定制 eoko/zf-mandrill 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

eoko/zf-mandrill

最新稳定版本:2.0.0

Composer 安装命令:

composer require eoko/zf-mandrill

包简介

ZF2 wrapper for the Mandrill API.

README 文档

README

Build Status Coverage Status Coverage Status Eoko Public Channel

Introduction

zf-mandrill is a simple wrapper for the Mandrill API. It permit to use the Mandrill API using a pre-configure client in a Zend Framework context.

With this module, you can :

  • pre-configure Mandrill client
  • check your configuration using zend-diagnostic
  • send email from CLI (for testing purpose)
  • send email directly from controller
  • use email service to send email

Installation

zf-mandrill works with Composer. Make sure you have the composer.phar downloaded and you have a composer.json file at the root of your project. To install it, you can do it from CLI composer require eoko/zf-mandrill or add the following line into your composer.json file:

"require": {
    "eoko/zf-mandrill": "dev-master"
}

Configuration

Copy/Paste in your local configuration config/mandrill.local.php.dist and rename it to mandrill.local.php. There are all the informations required for zf-mandrill configuration.

Service Available

The following services are pre-configured in the service locator :

  • Mandrill client : eoko.mandrill.client
  • Email service : Eoko\Mandrill\Service\Email

Command

  • Check your configuration : php public/index.php diag
  • Send an email : php public/index.php mandrill send email jane@doe.com subject htmlContent_or_filename

Controller plugin

Inside a controller, we can use the email plugin : $this->email()->setSubject('hello')->setTo('jane@doe.com')->send()

统计信息

  • 总下载量: 300
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-06-27