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

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

asahasrabuddhe/laravel-mjml
===========================

A package that enables using MJML with Laravel Mailables.

0.9.0(2y ago)129543.7k↓23.3%54[9 issues](https://github.com/asahasrabuddhe/laravel-mjml/issues)[2 PRs](https://github.com/asahasrabuddhe/laravel-mjml/pulls)MITPHP

Since May 3Pushed 1y ago3 watchersCompare

[ Source](https://github.com/asahasrabuddhe/laravel-mjml)[ Packagist](https://packagist.org/packages/asahasrabuddhe/laravel-mjml)[ RSS](/packages/asahasrabuddhe-laravel-mjml/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (26)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

47

—

FairBetter than 93% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 54.6% 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 ~165 days

Recently: every ~118 days

Total

13

Last Release

1003d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25657923?v=4)[Ajitem Sahasrabuddhe](/maintainers/asahasrabuddhe)[@asahasrabuddhe](https://github.com/asahasrabuddhe)

---

Top Contributors

[![asahasrabuddhe](https://avatars.githubusercontent.com/u/25657923?v=4)](https://github.com/asahasrabuddhe "asahasrabuddhe (71 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (22 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)")[![krihoevt](https://avatars.githubusercontent.com/u/154346237?v=4)](https://github.com/krihoevt "krihoevt (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)")[![GabeStah](https://avatars.githubusercontent.com/u/79492?v=4)](https://github.com/GabeStah "GabeStah (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)")[![eklundkristoffer](https://avatars.githubusercontent.com/u/6270760?v=4)](https://github.com/eklundkristoffer "eklundkristoffer (1 commits)")[![umihico](https://avatars.githubusercontent.com/u/39179585?v=4)](https://github.com/umihico "umihico (1 commits)")[![vanderb](https://avatars.githubusercontent.com/u/2151453?v=4)](https://github.com/vanderb "vanderb (1 commits)")[![jimping](https://avatars.githubusercontent.com/u/3754495?v=4)](https://github.com/jimping "jimping (1 commits)")[![Xhonor](https://avatars.githubusercontent.com/u/15837839?v=4)](https://github.com/Xhonor "Xhonor (1 commits)")

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[civicrm/civicrm-core

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

751291.4k43](/packages/civicrm-civicrm-core)[prestashop/prestashop

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

9.1k17.8k](/packages/prestashop-prestashop)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[notfloran/mjml-bundle

Symfony bundle for MJML

1162.3M2](/packages/notfloran-mjml-bundle)

PHPackages © 2026

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