Email Templating and Rendering Module for Phwoolcon
Install as a phwoolcon
package
bin/import-package phwoolcon/mail-renderer
The default config file will be linked to app/config/mail-renderer.php
If you need to change the options, please make a copy under production dir and modify it:
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>
<?php
use MailRenderer;
list($subject, $body) = MailRenderer::renderEmail('hello/world', ['name' => 'John']);
Please see CHANGELOG for more information on what has changed recently.
$ composer test
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The Apache License, Version 2.0. Please see License File for more information.