PHPackages                             qferr/mjml-php - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. qferr/mjml-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

qferr/mjml-php
==============

A simple PHP library to render MJML to HTML.

2.0.0(4y ago)70701.1k—7.5%10[5 PRs](https://github.com/qferr/mjml-php/pulls)3MITPHPPHP &gt;=7.2

Since Apr 2Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (5)Used By (3)

MJML in PHP
===========

[](#mjml-in-php)

[![PHPUnit](https://github.com/qferr/mjml-php/actions/workflows/php.yml/badge.svg)](https://github.com/qferr/mjml-php/actions/workflows/php.yml/badge.svg)

A simple PHP library to render MJML to HTML.

There are two ways for integrating MJML in PHP:

- using the MJML API
- using the MJML library

### Installation

[](#installation)

```
composer require qferr/mjml-php
```

### Using MJML library

[](#using-mjml-library)

Install the MJML library:

```
npm install mjml --save
```

If you want a specific version, use the following syntax: `npm install mjml@4.7.1 --save`

```
