PHPackages                             elgigi/mjml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. elgigi/mjml

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

elgigi/mjml
===========

PHP MJML library

1.1.1(2y ago)05.6k↓41.6%1proprietaryPHPPHP ^7.1 || ^8.0CI failing

Since Sep 16Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/ElGigi/mjml)[ Packagist](https://packagist.org/packages/elgigi/mjml)[ RSS](/packages/elgigi-mjml/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

PHP MJML library
================

[](#php-mjml-library)

[![Latest Version](https://camo.githubusercontent.com/dc3cc865f64f64d85f78194aee0bfea48b910a531d04a4e903a74b72796019f7/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c676967692f6d6a6d6c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/ElGigi/mjml/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/6635d27272e960440458e5b6369d3f0a7d89590a4153bd120d0d2b20a060662a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f456c476967692f6d6a6d6c2f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/ElGigi/mjml/actions/workflows/tests.yml?query=branch%3Amain)[![Codacy Grade](https://camo.githubusercontent.com/049a7f6fe37a71f34843660c4946958708207a0ec669cb8b60b2f7f44358b14b/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f38363638643261326431643234366232393839613462336234653436633233302e7376673f7374796c653d666c61742d737175617265)](https://www.codacy.com/app/ElGigi/mjml?utm_source=github.com&utm_medium=referral&utm_content=ElGigi/mjml&utm_campaign=Badge_Grade)[![Total Downloads](https://camo.githubusercontent.com/a43ad325bbc043f71248292b658b50584e466d98f633a7676a65a6cedcc23c9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c676967692f6d6a6d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/elgigi/mjml)

PHP library who use MJML node.js library to convert MJML language to HTML.

Installation
------------

[](#installation)

### Composer

[](#composer)

You can install the client with [Composer](https://getcomposer.org/), it's the recommended installation.

```
composer require elgigi/mjml
npm install mjml
```

### Dependencies

[](#dependencies)

- **PHP** ^7.1 || ^8.0
- NPM: **mjml**

Usage
-----

[](#usage)

```
$mjml = new Mjml(PATH_TO_MJML_NODE_COMMAND);
$output = $mjml->strToHtml('MY MJML CODE');
```

Options
-------

[](#options)

You can minify the output (default: yes).

```
$mjml->minify(false); // To disable minify option
$mjml->minify(true); // To enable minify option
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance45

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~830 days

Total

3

Last Release

822d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.1.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18268216?v=4)[Ronan Giron](/maintainers/ElGigi)[@ElGigi](https://github.com/ElGigi)

---

Top Contributors

[![ElGigi](https://avatars.githubusercontent.com/u/18268216?v=4)](https://github.com/ElGigi "ElGigi (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elgigi-mjml/health.svg)

```
[![Health](https://phpackages.com/badges/elgigi-mjml/health.svg)](https://phpackages.com/packages/elgigi-mjml)
```

###  Alternatives

[symfony/mercure

Symfony Mercure Component

44016.9M42](/packages/symfony-mercure)[mpociot/reflection-docblock

8517.6M54](/packages/mpociot-reflection-docblock)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
