frosh/mjml
Composer 安装命令:
composer require frosh/mjml
包简介
Compiles MJML email templates to HTML for Shopware mail sending
README 文档
README
⚠️ Work in progress — this plugin is still under active development and not yet production-ready. Expect breaking changes.
MJML email templates for Shopware 6.7. MJML in a mail's HTML body is compiled to
responsive HTML at send time — pure PHP (shyim/mjml-php), no Node required.
Requirements
- Shopware ~6.7.0
- PHP 8.2+
Installation
composer require frosh/mjml bin/console plugin:refresh bin/console plugin:install --activate FroshMjml
Usage
Per mail template: open a mail template, toggle Use MJML, and write MJML in the editor. The default HTML stays untouched, so the toggle is reversible.
Reusable components (Settings → MJML Components) are referenced from Twig:
{{ mjml_component('name', { headline: '…' }) }}— inline fragment{% mjml 'name' %}…{% endmjml %}— fragment with a{{ content }}slot{% extends mjml_base('name') %}{% block content %}…{% endblock %}— base layout
Content inside a block or slot must be valid MJML (<mj-text>…</mj-text> etc.);
raw text in an <mj-column> is dropped by MJML.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-09