2017 © Pedro Peláez
 

library mail-renderer

Email Templating and Rendering Module for Phwoolcon

image

phwoolcon/mail-renderer

Email Templating and Rendering Module for Phwoolcon

  • Sunday, November 5, 2017
  • by Fishdrowned
  • Repository
  • 1 Watchers
  • 0 Stars
  • 144 Installations
  • CSS
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 25 % Grown

The README.md

mail-renderer

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

Email Templating and Rendering Module for Phwoolcon, (*2)

Install

Install as a phwoolcon package, (*3)

bin/import-package phwoolcon/mail-renderer

Usage

Configure

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

Create Your Own Email Templates

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>



### Render Email From Template ```php <?php use MailRenderer; list($subject, $body) = MailRenderer::renderEmail('hello/world', ['name' => 'John']);
## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ``` bash $ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*6)

Security

If you discover any security related issues, please email fishdrowned@gmail.com instead of using the issue tracker., (*7)

Credits

License

The Apache License, Version 2.0. Please see License File for more information., (*8)

The Versions

05/11 2017

dev-master

9999999-dev https://github.com/phwoolcon/mail-renderer

Email Templating and Rendering Module for Phwoolcon

  Sources   Download

Apache-2.0

The Requires

  • php ~5.5|~7.0

 

The Development Requires

phwoolcon mail-renderer