PHPackages                             bluora/laravel-emogrifier - 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. bluora/laravel-emogrifier

Abandoned → [hnhdigital-os/laravel-emogrifier](/?search=hnhdigital-os%2Flaravel-emogrifier)Library[Mail &amp; Notifications](/categories/mail)

bluora/laravel-emogrifier
=========================

A Laravel wrapper for emogrifier that converts CSS styles into inline style attributes in your HTML code.

2.1.0(6y ago)514MITPHPPHP &gt;=7.2.0

Since Jan 2Pushed 6y agoCompare

[ Source](https://github.com/bluora/laravel-emogrifier)[ Packagist](https://packagist.org/packages/bluora/laravel-emogrifier)[ Docs](http://www.pelagodesign.com/sidecar/emogrifier/)[ RSS](/packages/bluora-laravel-emogrifier/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (7)Versions (9)Used By (0)

```
                                 _  __ _
                                (_)/ _(_)
  ___ _ __ ___   ___   __ _ _ __ _| |_ _  ___ _ __
 / _ \ '_ ` _ \ / _ \ / _` | '__| |  _| |/ _ \ '__|
|  __/ | | | | | (_) | (_| | |  | | | | |  __/ |
 \___|_| |_| |_|\___/ \__, |_|  |_|_| |_|\___|_|
                       __/ |
                      |___/

```

This package provides a Laravel wrapper to the [Emogrifier](https://github.com/jjriv/emogrifier) package that provides the ability to convert CSS styles into inline style attributes in your HTML code.

[![Latest Stable Version](https://camo.githubusercontent.com/079dd6a376e2312ef2e570e32b66a314945bc04f52c6c0272e924f1b596c50ae/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f762f737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [![Total Downloads](https://camo.githubusercontent.com/9af01bfc556411bb6c2d2ed9fa74d02920ae22ef5831b58e9c143320c15f52d7/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f646f776e6c6f6164732e737667)](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [![Latest Unstable Version](https://camo.githubusercontent.com/d7330c85a124ee15b4e01cccbbdf9b8233301800e9c4e27096eec023bad7d296/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f762f756e737461626c652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [![Built for Laravel](https://camo.githubusercontent.com/ddd4a07bb769306a9338cffde2032c289e4d43d43ac346122709465a47cdff3f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d677265656e2e737667)](https://laravel.com/) [![License](https://camo.githubusercontent.com/9723966cf271351f993525609d2ceed1f6f4ed4cacc5af8305c09a256a9bdd97/68747470733a2f2f706f7365722e707567782e6f72672f686e686469676974616c2d6f732f6c61726176656c2d6e617669676174696f6e2d6275696c6465722f6c6963656e73652e737667)](https://packagist.org/packages/hnhdigital-os/laravel-navigation-builder) [![Donate to this project using Patreon](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://patreon.com/RoccoHoward)

[![Build Status](https://camo.githubusercontent.com/ba18f2b2ae430a6322f853698992e7d6e1bac1bf80cb6e7bb7500029795671d9/68747470733a2f2f7472617669732d63692e6f72672f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hnhdigital-os/laravel-emogrifier) [![StyleCI](https://camo.githubusercontent.com/0972d2102e41dfbeb2aeac6f09e1592dce1d12bc54a5efa507b8886b30f78905/68747470733a2f2f7374796c6563692e696f2f7265706f732f39303236343633322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/90264632) [![Test Coverage](https://camo.githubusercontent.com/58cea3841ae96ffe82d6bf199bbc538cbad2d98dd3ba81672e6487553ecc2b51/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier/coverage) [![Issue Count](https://camo.githubusercontent.com/e891e587b9c17b664f37a9b64ca940236b2037effbdd1367d0f972082e40cf00/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier) [![Code Climate](https://camo.githubusercontent.com/2165ccd7acb55b78a8244db505441f718e32e4caab74bf49ba4719f7f027fe4b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686e686469676974616c2d6f732f6c61726176656c2d656d6f677269666965722f6261646765732f6770612e737667)](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier)

This package has been developed by H&amp;H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).

Documentation
-------------

[](#documentation)

- [Requirements](#requirements)
- [Installation](#install)
- [Configuration](#configuration)
- [Instructions](#instructions)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Requirements
------------

[](#requirements)

- Laravel 5.4
- PHP 7.1

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

[](#installation)

Via composer:

`$ composer require hnhdigital-os/laravel-emogrifier ~2.0`

The service provider will autoload from Laravel 5.5.

Enable the facade by editing config/app.php:

```
'aliases' => array(
    ...
    'Emogrifier' => HnhDigital\Emogrifier\Facade::class,
    ...
)
```

To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:

Enable the service provider by editing config/app.php:

```
'providers' => array(
    ...
    HnhDigital\Emogrifier\ServiceProvider::class,
    ...
)
```

Instructions
------------

[](#instructions)

```
$output = Emogrifier::parse($html, $css);
$output = app('Emogrifier')->parse($html, $css);
```

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-emogrifier/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Rocco Howard](https://github.com/RoccoHowrd)
- [All Contributors](https://github.com/hnhdigital-os/laravel-emogrifier/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-emogrifier/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 96.4% 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 ~104 days

Recently: every ~175 days

Total

8

Last Release

2369d ago

Major Versions

v1.x-dev → 2.0.02018-01-30

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=7.1.0

2.1.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5270e3a3d1add4e39f12dfde3ce549999a26f759d7128056083ab07f475259f2?d=identicon)[bluora](/maintainers/bluora)

---

Top Contributors

[![RoccoHoward](https://avatars.githubusercontent.com/u/227896?v=4)](https://github.com/RoccoHoward "RoccoHoward (27 commits)")[![clingle](https://avatars.githubusercontent.com/u/13282075?v=4)](https://github.com/clingle "clingle (1 commits)")

---

Tags

laravelcssemailpre-processing

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bluora-laravel-emogrifier/health.svg)

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

###  Alternatives

[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94745.9M132](/packages/pelago-emogrifier)[synergitech/laravel-postal

This library integrates Postal with the standard Laravel mail framework.

38113.9k](/packages/synergitech-laravel-postal)[mydnic/laravel-subscribers

Easily Manage Internal Newsletter Subscribers in Laravel — with campaigns, mail sending, and tracking

265.0k](/packages/mydnic-laravel-subscribers)[juanparati/brevosuite

Complete Brevo integration with Laravel

1013.2k](/packages/juanparati-brevosuite)[signaturetech/laravel-otp

A package to generate and manage otp

181.3k](/packages/signaturetech-laravel-otp)

PHPackages © 2026

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