gollumsf/mjml-binary
gollumsf/mjml-binary makes it easy to compile MJML into responsive HTML emails in Laravel/PHP projects. It bundles the MJML binary, so you can render templates without managing external installations or dependencies.
npm/mjml at runtime.Adopt when:
MjmlBundle or are willing to — this package exists specifically to serve that path.Look elsewhere (or don't adopt) when:
mjml CLI directly; this package adds nothing.For executives: This gives us responsive, brand-consistent transactional email without adding a new language or runtime to operations — one Composer dependency instead of a Node service, a CI pipeline, and a new class of container to patch. Integration cost is low and the decision is reversible. The caveats are real but bounded: the package hasn't been updated since 2021 and carries a GPL-3.0 license. I'd frame it as a tactical choice to get email shipped, with an explicit exit plan (templates stay in portable MJML source), not a long-term platform bet.
For engineering: It's a precompiled MJML binary shipped via Composer, built for MjmlBundle, so we can render MJML to responsive HTML inside PHP with no node/npm in prod or CI — useful if we want PHP-only images. The tradeoffs are an aging MJML version, possible gaps in platform binary coverage (ARM/Alpine worth checking early), near-zero community validation, and copyleft obligations if we ever distribute the app. Mitigations: pin the version, precompile templates at build time where we can, keep templates renderer-agnostic so swapping to a Node CLI or sidecar is a contained change, and fork the package if we hit its limits.
How can I help you explore Laravel packages today?