定制 bryonbean/mjml 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 npm executable 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

MIT

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-14