Download the PHP package qferr/mjml-twig without Composer
On this page you can find all versions of the php package qferr/mjml-twig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download qferr/mjml-twig
More information about qferr/mjml-twig
Files in qferr/mjml-twig
Download qferr/mjml-twig
More information about qferr/mjml-twig
Files in qferr/mjml-twig
Vendor qferr
Package mjml-twig
Short Description Twig extension that provides a filter that processes a mjml email template
License
Package mjml-twig
Short Description Twig extension that provides a filter that processes a mjml email template
License
Please rate this library. Is it a good library?
Informations about the package mjml-twig
Twig MJML extension
This package is a Twig extension that provides the following:
- mjml_to_html filter: processes a mjml email template.
Because we have two ways for rendering MJML to HML, the extension depends on a renderer:
- BinaryRenderer: using the MJML library. You will have to provide the location of the MJML binary. Don’t forget to install it with the Node package manager.
- ApiRenderer: using the MJML API. Nothing to install. You will have to provide the credentials to access of the API.
Thanks to the library MJML in PHP for make easier the integration of MJML in PHP. Read the article Rendering MJML in PHP for more informations.
Installation
composer require qferr/mjml-twig
Usage
You can now start using MJML in any Twig template.
Integrating in Symfony
Register the MJML extension as a service and tag it with twig.extension
.
Source: Using MJML with Twig
All versions of mjml-twig with dependencies
PHP Build Version
Package Version
The package qferr/mjml-twig contains the following files
Loading the files please wait ....