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

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

webnuvola/laravel-mjml
======================

Effortlessly craft responsive email templates using MJML within Laravel Mailables

v1.0.1(2y ago)16.6k↓50%MITPHPPHP ^8.1

Since May 3Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (16)Used By (0)

Laravel MJML
============

[](#laravel-mjml)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d296e7ece5cdfd41c1ca936d5d856f146905711929fc840fd21d71af6367084f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7765626e75766f6c612f6c61726176656c2d6d6a6d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webnuvola/laravel-mjml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ce3221209d9796560ed373563177a65f81f4bc7b4718db11a02b7f38528b7f8b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7765626e75766f6c612f6c61726176656c2d6d6a6d6c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e)](https://github.com/webnuvola/laravel-mjml/actions/workflows/run-tests.yml?query=branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/881d582d489572b7bd5d68d62dc99fdb4b2e77ff25bff7b3f2e14b86adbee745/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765626e75766f6c612f6c61726176656c2d6d6a6d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webnuvola/laravel-mjml)

Effortlessly craft responsive email templates using MJML within Laravel Mailables.

To use this package, follow these steps after generating a new Mailable.
Instead of extending `Illuminate\Mail\Mailable`, extend `Webnuvola\Laravel\Mjml\Mailable`.
In the Mailable class, define the `build` method.
You can now use the `mjml` method for defining a view or `mjmlContent` to directly pass the MJML template.

Here's an example:

```
use Webnuvola\Laravel\Mjml\Mailable;

class TestMail extends Mailable
{
    /**
     * Build the message.
     */
    public function build(): void
    {
        $this->mjml('emails.orders.shipped', [
            'order' => $order,
        ]);
    }
}
```

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

[](#installation)

You can install the package via composer:

```
composer require webnuvola/laravel-mjml
```

In your project, or on your server, you must have the JavaScript package [`mjml`](https://github.com/mjmlio/mjml) installed.

```
npm install mjml
```

Make sure you have installed Node 16 or higher.
This package uses [`spatie/mjml-php`](https://github.com/spatie/mjml-php) under the hood.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Fabio Cagliero](https://github.com/fab120)

Inspired by [asahasrabuddhe/laravel-mjml](https://github.com/asahasrabuddhe/laravel-mjml) package.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 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 ~152 days

Recently: every ~323 days

Total

15

Last Release

796d ago

Major Versions

v0.x-dev → v1.0.02024-03-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee6fac3ff235d06469b2a8a3afa880ec3e48807f520fa2b98fb9f8a761bcc16?d=identicon)[fab120](/maintainers/fab120)

---

Top Contributors

[![fab120](https://avatars.githubusercontent.com/u/293368?v=4)](https://github.com/fab120 "fab120 (3 commits)")

---

Tags

emaillaravelmailmailablesmjmllaravelmailemailmjmlmailables

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)[synergitech/laravel-postal

This library integrates Postal with the standard Laravel mail framework.

38107.1k](/packages/synergitech-laravel-postal)[juanparati/brevosuite

Complete Brevo integration with Laravel

1010.8k](/packages/juanparati-brevosuite)

PHPackages © 2026

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