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
Author
David Gorges, Managing Director

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

Mistral Large 4: Europe's answer to the frontier models

Mistral released Large 4 as a public preview today. It is a 1.05-trillion-parameter Mixture-of-Experts model with 49B active parameters, text and vision input and a one-million-token context window. Mistral trained it from scratch on 3,800 Nvidia Grace Blackwell GPUs in its own European datacenters and runs it there, end to end, under European law. The weights are due as open weights by the end of October.

It doesn't quite match the leading US models, but if you need your data and your provider to stay in Europe, it is the first serious option at this size.

Read Mistral's announcement

Software Development in Hamburg!

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