PHPackages                             fridzel/laravel-mail-optimizer - 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. fridzel/laravel-mail-optimizer

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

fridzel/laravel-mail-optimizer
==============================

Inlines css and minifies html in Laravel mails

1.0.3(4y ago)0256MITPHP

Since Nov 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fridzel/laravel-mail-optimizer)[ Packagist](https://packagist.org/packages/fridzel/laravel-mail-optimizer)[ Docs](https://github.com/fridzel/laravel-mail-optimizer)[ RSS](/packages/fridzel-laravel-mail-optimizer/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (14)Used By (0)

LaravelMailOptimizer
====================

[](#laravelmailoptimizer)

[![GitHub issues](https://camo.githubusercontent.com/46ac87ce8b59422acce2a7606496131138d95b526f8f1f7d9cffdaa8b9121f18/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f667269647a656d612f6c61726176656c2d6d61696c2d6f7074696d697a65722e737667)](https://github.com/fridzema/laravel-mail-optimizer/issues)[![StyleCI](https://camo.githubusercontent.com/58c4c87e7fe689fdccd327dea1caeb3f9df2d62d13e112eda080def39f04358f/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135373731333630352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/157713605)[![Latest Stable Version](https://camo.githubusercontent.com/1c9679672ec13addc19410ce1d37680f3ef99c4a103b0c3bb35367f7191a316b/68747470733a2f2f706f7365722e707567782e6f72672f667269647a656d612f6c61726176656c2d6d61696c2d6f7074696d697a65722f762f737461626c65)](https://packagist.org/packages/fridzema/laravel-mail-optimizer)[![License](https://camo.githubusercontent.com/bf2fdce1415b26babeed6749e2c4c7573eb88f1b1bfa5f23aa6ebc5187459a10/68747470733a2f2f706f7365722e707567782e6f72672f667269647a656d612f6c61726176656c2d6d61696c2d6f7074696d697a65722f6c6963656e7365)](https://packagist.org/packages/fridzema/laravel-mail-optimizer)

Inlines css and minifies html in Laravel mails.

Roadmap
-------

[](#roadmap)

- Load css from url/cdn
- Disable / Enable optimizations
- Check some html mail standards
- Cache mail views
- Debug function

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

[](#installation)

Via Composer

```
$ composer require fridzema/laravel-mail-optimizer
```

Usage
-----

[](#usage)

Publish config

```
php artisan vendor:publish --provider='Fridzema\LaravelMailOptimizer\LaravelMailOptimizerServiceProvider'

```

Change log
----------

[](#change-log)

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

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Robert Fridzema](https://github.com/fridzema)
- [All Contributors](../../contributors%5D)

Inspiration
-----------

[](#inspiration)

This package is greatly inspired, and mostly copied, from [laravel-mail-css-inliner](https://github.com/fedeisas/laravel-mail-css-inliner). Because laravel-mail-css-inliner seems abonded i created this package with a few extra features.

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Recently: every ~216 days

Total

13

Last Release

1567d ago

Major Versions

0.0.9 → 1.0.02019-09-12

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

csshtmllaravelmailperformancelaravelLaravelMailOptimizer

### Embed Badge

![Health badge](/badges/fridzel-laravel-mail-optimizer/health.svg)

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

###  Alternatives

[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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