PHP code example of elgigi / mjml
1. Go to this page and download the library: Download elgigi/mjml library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
elgigi / mjml example snippets
$mjml = new Mjml(PATH_TO_MJML_NODE_COMMAND);
$output = $mjml->strToHtml('MY MJML CODE');
$mjml->minify(false); // To disable minify option
$mjml->minify(true); // To enable minify option