elgigi / mjml
PHP MJML library
Installs: 3 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.1 || ^8.0
Requires (Dev)
- phpunit/phpunit: ^7.5 || ^8.0 || ^9.0
README
PHP library who use MJML node.js library to convert MJML language to HTML.
Installation
Composer
You can install the client with Composer, it's the recommended installation.
composer require elgigi/mjml npm install mjml
Dependencies
- PHP ^7.1 || ^8.0
- NPM: mjml
Usage
$mjml = new Mjml(PATH_TO_MJML_NODE_COMMAND); $output = $mjml->strToHtml('MY MJML CODE');
Options
You can minify the output (default: yes).
$mjml->minify(false); // To disable minify option $mjml->minify(true); // To enable minify option