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

ActiveLibrary

progglund/laravel-mjml
======================

A package that enables using MJML with Laravel Mailables.

0.7.0(3y ago)040PHP

Since May 3Pushed 3y agoCompare

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

READMEChangelogDependencies (4)Versions (24)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. In the build method, use: `$this->mjml('view.name');`

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~169 days

Recently: every ~243 days

Total

11

Last Release

1238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57e84844ba30eecbc2fe2b6ee26266ed5323ddf7b7de525e6764ae79dd753749?d=identicon)[cornex](/maintainers/cornex)

---

Top Contributors

[![asahasrabuddhe](https://avatars.githubusercontent.com/u/25657923?v=4)](https://github.com/asahasrabuddhe "asahasrabuddhe (65 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![therooster-pixels](https://avatars.githubusercontent.com/u/92294822?v=4)](https://github.com/therooster-pixels "therooster-pixels (5 commits)")[![odinti](https://avatars.githubusercontent.com/u/12376435?v=4)](https://github.com/odinti "odinti (2 commits)")[![MadWillow](https://avatars.githubusercontent.com/u/16151453?v=4)](https://github.com/MadWillow "MadWillow (1 commits)")[![mbardelmeijer](https://avatars.githubusercontent.com/u/1583095?v=4)](https://github.com/mbardelmeijer "mbardelmeijer (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)")[![eklundkristoffer](https://avatars.githubusercontent.com/u/6270760?v=4)](https://github.com/eklundkristoffer "eklundkristoffer (1 commits)")[![GabeStah](https://avatars.githubusercontent.com/u/79492?v=4)](https://github.com/GabeStah "GabeStah (1 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)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/progglund-laravel-mjml/health.svg)](https://phpackages.com/packages/progglund-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.0k15.4k](/packages/prestashop-prestashop)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[illuminate/process

The Illuminate Process package.

44699.5k65](/packages/illuminate-process)

PHPackages © 2026

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