PHPackages                             nautiyal/laravel-mail-css-inliner - 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. nautiyal/laravel-mail-css-inliner

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

nautiyal/laravel-mail-css-inliner
=================================

Laravel 5 Mail CSS Inliner Service

v1.2(7y ago)033MITPHP

Since Aug 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ianautiyal/laravel-mail-css-inliner)[ Packagist](https://packagist.org/packages/nautiyal/laravel-mail-css-inliner)[ RSS](/packages/nautiyal-laravel-mail-css-inliner/feed)WikiDiscussions master Synced 2d ago

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

Laravel 5 Mail CSS Inliner
==========================

[](#laravel-5-mail-css-inliner)

Why?
----

[](#why)

Most email clients won't render CSS (on a `` or a ``). The solution is to inline your CSS directly into the HTML. Doing this by hand is tedious and difficult to maintain. The goal of this package is to automate the process of inlining that CSS before sending the emails.

How?
----

[](#how)

Using a wonderful CSS inliner package wraped in a SwiftMailer plugin and served as a Service Provider. It works without configuration

Transforming:

```

            h1 {
                font-size: 24px;
                color: #000;
            }

        Your content

```

Into this:

```

        Your content

```

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `nautiyal/laravel-mail-css-inliner`.

This package requires Laravel 5.x

```
$ composer require nautiyal/laravel-mail-css-inliner
```

Once this operation completes, you must add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
Nautiyal\MailCssInliner\MailCssInlinerProvider::class,
```

Found a bug?
------------

[](#found-a-bug)

Please, let me know! Send a pull request or a patch. Questions? Ask! I will respond to all filed issues.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

3

Last Release

2790d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47745733?v=4)[Shubham Nautiyal](/maintainers/nautiyal)[@nautiyal](https://github.com/nautiyal)

---

Top Contributors

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

---

Tags

csstoinlinecsstoinlinestyleslaravellaravel5mail

### Embed Badge

![Health badge](/badges/nautiyal-laravel-mail-css-inliner/health.svg)

```
[![Health](https://phpackages.com/badges/nautiyal-laravel-mail-css-inliner/health.svg)](https://phpackages.com/packages/nautiyal-laravel-mail-css-inliner)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[illuminate/mail

The Illuminate Mail package.

5910.6M484](/packages/illuminate-mail)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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