dev-master
9999999-dev https://github.com/phwoolcon/mail-rendererEmail Templating and Rendering Module for Phwoolcon
Apache-2.0
The Requires
- php ~5.5|~7.0
The Development Requires
phwoolcon mail-renderer
Email Templating and Rendering Module for Phwoolcon
![Software License][ico-license] ![Coverage Status][ico-scrutinizer] ![Total Downloads][ico-downloads], (*1)
Email Templating and Rendering Module for Phwoolcon, (*2)
Install as a phwoolcon
package, (*3)
bin/import-package phwoolcon/mail-renderer
The default config file will be linked to app/config/mail-renderer.php
, (*4)
If you need to change the options, please make a copy under production dir and modify it:, (*5)
cp app/config/mail-renderer.php app/config/production/mail-renderer.php vim app/config/production/mail-renderer.php
vim phwoolcon-package/views/email/hello/world.phtml
<?php /* @var Phwoolcon\View\Engine\Php $this */ MailRenderer::setSubject(__('Hello world')); ?> <h1>Hello <?= $name ?></h1> <p>Welcome to use <code>phwoolcon/mail-renderer</code>!</p>## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test
### Render Email From Template ```php <?php use MailRenderer; list($subject, $body) = MailRenderer::renderEmail('hello/world', ['name' => 'John']);
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*6)
If you discover any security related issues, please email fishdrowned@gmail.com instead of using the issue tracker., (*7)
The Apache License, Version 2.0. Please see License File for more information., (*8)
Email Templating and Rendering Module for Phwoolcon
Apache-2.0
phwoolcon mail-renderer