Download the PHP package eoko/zf-mandrill without Composer
On this page you can find all versions of the php package eoko/zf-mandrill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eoko/zf-mandrill
More information about eoko/zf-mandrill
Files in eoko/zf-mandrill
Package zf-mandrill
Short Description ZF2 wrapper for the Mandrill API.
License BSD-3-Clause
Homepage https://github.com/eoko/zf-mandrill
Informations about the package zf-mandrill
zf-mandrill
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:
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 [email protected] subject htmlContent_or_filename
Controller plugin
Inside a controller, we can use the email plugin : $this->email()->setSubject('hello')->setTo('[email protected]')->send()
All versions of zf-mandrill with dependencies
eoko/zf-console Version ~1.0
zendframework/zend-stdlib Version ~2.5
zendframework/zend-console Version ~2.5
zendframework/zend-servicemanager Version ~2.5
zendframework/zend-view Version ^2.5@dev
mandrill/mandrill Version ~1.0
slm/queue Version ~0.4