PHPackages                             bryonbean/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. bryonbean/mjml

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

bryonbean/mjml
==============

MJML Compiler for PHP

1.0.0(5y ago)21.1k1[5 PRs](https://github.com/bryonbean/mjml/pulls)MITPHP

Since Dec 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bryonbean/mjml)[ Packagist](https://packagist.org/packages/bryonbean/mjml)[ RSS](/packages/bryonbean-mjml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (8)Used By (0)

MJML Compilation for PHP
========================

[](#mjml-compilation-for-php)

Description
-----------

[](#description)

A PHP API for MailJet's mjml transpiler.

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

[](#installation)

```
$ composer require bryonbean/mjml
```

Requirements
------------

[](#requirements)

- The `npm` executable must be available in PATH.
- The node executable must be located at `/usr/local/bin/node`

Usage
-----

[](#usage)

```
use Mjml\Factory;
use Mjml\Compiler;

$mjml = '

        Hello world

';

$factory = new Factory();
$compiler = new Compiler($factory);
$compiler->compile($mjml, '/path/to/my/template');
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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

Unknown

Total

1

Last Release

1993d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2266b4474d9e672f2b2fff20d1efbff9af7eb1c0e684ad0286de901ca902c4b7?d=identicon)[bryonbean](/maintainers/bryonbean)

---

Top Contributors

[![bryonbean](https://avatars.githubusercontent.com/u/1581485?v=4)](https://github.com/bryonbean "bryonbean (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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