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

ActiveLibrary

deezin/laravel-mjml
===================

A package that enables using MJML with Laravel Mailables.

1.0.1(1y ago)012.1k↓100%MITPHP

Since Mar 25Pushed 1y agoCompare

[ Source](https://github.com/deezin/laravel-mjml)[ Packagist](https://packagist.org/packages/deezin/laravel-mjml)[ RSS](/packages/deezin-laravel-mjml/feed)WikiDiscussions master Synced today

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

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

[](#laravel-mjml)

Build responsive e-mails easily using MJML and Laravel Mailables.

### MJML

[](#mjml)

MJML is an awesome tool from MailJet that allows us to create responsive emails very easily. For more information on how to use it, head to their documentation [here](https://mjml.io/documentation/#mjml-guides)

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

[](#installation)

To install this package, require this package using composer as follows:

`composer require asahasrabuddhe/laravel-mjml`

After composer installs the packages and all the dependencies, publish the package configuration using artisan command:

`php artisan vendor:publish`

Select the laravel-mjml in the list. You will also need to install the MJML CLI:

`npm install --save mjml`

Getting Started
---------------

[](#getting-started)

1. Create a view containing MJML in your resources/views directory.
2. Create a mailable class using artisan command: `php artisan make:mail MJMLEmail`
3. In the mailable class, replace

    ` use Illuminate\Mail\Mailable;`

    with

    `use Asahasrabuddhe\LaravelMJML\Mail\Mailable;`
4. For Laravel 8 and below, in the `build` method, use:

    ```
    public function build()
    {
        return $this->mjml('view.name')
    }
    ```

    For Laravel 9, in the `content` method:, use:

    ```
    public function content()
    {
        return new Content(
            view: $this->mjml('view.name')->buildMjmlView()['html'],
        );
    }
    ```

Configuration
-------------

[](#configuration)

By default, the package will automatically detect the path of the MJML CLI installed locally in the project. In case this does not happen or the MJML CLI is installed globally, please update the configuration file likewise.

That's it! You have successfully installed and configured the MJML package for use. Just create new views and use them in the mailables class.

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56% 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 ~0 days

Total

2

Last Release

728d ago

### Community

Maintainers

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

---

Top Contributors

[![asahasrabuddhe](https://avatars.githubusercontent.com/u/25657923?v=4)](https://github.com/asahasrabuddhe "asahasrabuddhe (70 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (14 commits)")[![therooster-pixels](https://avatars.githubusercontent.com/u/92294822?v=4)](https://github.com/therooster-pixels "therooster-pixels (5 commits)")[![maximepvrt](https://avatars.githubusercontent.com/u/1840026?v=4)](https://github.com/maximepvrt "maximepvrt (3 commits)")[![odinti](https://avatars.githubusercontent.com/u/12376435?v=4)](https://github.com/odinti "odinti (2 commits)")[![jimping](https://avatars.githubusercontent.com/u/3754495?v=4)](https://github.com/jimping "jimping (1 commits)")[![madina972](https://avatars.githubusercontent.com/u/5021723?v=4)](https://github.com/madina972 "madina972 (1 commits)")[![MadWillow](https://avatars.githubusercontent.com/u/16151453?v=4)](https://github.com/MadWillow "MadWillow (1 commits)")[![eklundkristoffer](https://avatars.githubusercontent.com/u/6270760?v=4)](https://github.com/eklundkristoffer "eklundkristoffer (1 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (1 commits)")[![repat](https://avatars.githubusercontent.com/u/516807?v=4)](https://github.com/repat "repat (1 commits)")[![rizaljamhari](https://avatars.githubusercontent.com/u/21326415?v=4)](https://github.com/rizaljamhari "rizaljamhari (1 commits)")[![tennox](https://avatars.githubusercontent.com/u/2084639?v=4)](https://github.com/tennox "tennox (1 commits)")[![deezin](https://avatars.githubusercontent.com/u/6040964?v=4)](https://github.com/deezin "deezin (1 commits)")[![umihico](https://avatars.githubusercontent.com/u/39179585?v=4)](https://github.com/umihico "umihico (1 commits)")[![GabeStah](https://avatars.githubusercontent.com/u/79492?v=4)](https://github.com/GabeStah "GabeStah (1 commits)")[![vanderb](https://avatars.githubusercontent.com/u/2151453?v=4)](https://github.com/vanderb "vanderb (1 commits)")

### Embed Badge

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

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

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k14.6k](/packages/prestashop-prestashop)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

718267.0k10](/packages/civicrm-civicrm-core)[illuminate/console

The Illuminate Console package.

12943.4M4.4k](/packages/illuminate-console)[asahasrabuddhe/laravel-mjml

A package that enables using MJML with Laravel Mailables.

128526.8k](/packages/asahasrabuddhe-laravel-mjml)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

122268.2k4](/packages/maba-webpack-bundle)[illuminate/process

The Illuminate Process package.

44658.7k46](/packages/illuminate-process)

PHPackages © 2026

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