News

php-mjml is open source: our MJML renderer for PHP

MJML turns a simple markup language into responsive HTML email, usually with a Node toolchain doing the work behind it. We ported it to PHP end to end: php-mjml/php-mjml needs no Node.js, no second runtime in the deployment. It has rendered this website's emails since February; as of this week it's open under the MIT licence for anyone to use.

View the repository on GitHub
php-mjml is open source: our MJML renderer for PHP
Date

Why we built it

Our stack is Symfony and PHP, our emails are MJML templates. We didn't want to run a Node process alongside the PHP deployment just to translate markup into HTML. So now there's a native PHP implementation instead: App\Mail\MjmlRenderer in this very project is built directly on it.

What it does

php-mjml parses with an XML parser rather than an HTML one, so self-closing MJML elements are handled correctly. It covers 20-plus email components: text, buttons, images, carousels, accordions and more. Content from untrusted sources gets built-in sanitisation.

composer require php-mjml/php-mjml

Where it stands

Version 0.1.0 shipped on 1 September, and Packagist already counts more than 8,500 installs. The repository itself still calls itself "work in progress" and warns the API may change – honestly, it has run in production for us for months regardless, and we haven't missed anything for it.

More news

All news

dekkode at IBC 2026 in Amsterdam

From 11 to 14 September we're at IBC 2026 in Amsterdam, in the German Pavilion at the RAI. We're there to network: catching up with partners, customers and friends from the broadcast and media industry. If you're around too, get in touch.

hardenmyapp.com is live: we make AI-built apps production-ready

With Cursor, Lovable, Bolt or Claude Code, a working application takes days. Whether it survives a customer's security review, an investor's due diligence or the first real users is another question. That is what hardenmyapp.com is for: senior engineers from dekkode audit, harden and stabilise AI-generated apps without rebuilding them.

Visit hardenmyapp.com

Software Development in Hamburg!

Start new project with us or upgrade an existing one to the next level