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 2w ago

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 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

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

1617d ago

Major Versions

0.0.9 → 1.0.02019-09-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8180660?v=4)[Robert Fridzema](/maintainers/fridzema)[@fridzema](https://github.com/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

[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5984.7M3](/packages/fedeisas-laravel-mail-css-inliner)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)[php-flasher/flasher-laravel

Seamlessly integrate flash notifications into your Laravel applications with PHPFlasher. Enhance user feedback and engagement with minimal setup.

442.9M45](/packages/php-flasher-flasher-laravel)

PHPackages © 2026

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