bryonbean/mjml
最新稳定版本:1.0.0
Composer 安装命令:
composer require bryonbean/mjml
包简介
MJML Compiler for PHP
README 文档
README
Description
A PHP API for MailJet's mjml transpiler.
Installation
$ composer require bryonbean/mjml
Requirements
- The
npmexecutable must be available in PATH. - The node executable must be located at
/usr/local/bin/node
Usage
use Mjml\Factory; use Mjml\Compiler; $mjml = ' <mjml> <mj-body> <mj-section> <mj-raw><p>Hello world</p></mj-raw> </mj-section> </mj-body> </mjml> '; $factory = new Factory(); $compiler = new Compiler($factory); $compiler->compile($mjml, '/path/to/my/template');
Contributing
Pull requests are welcome. For major changes please open an issue first to discuss what you would like to change.
License
统计信息
- 总下载量: 1.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-14