PHPackages                             emil/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. emil/inliner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

emil/inliner
============

2.0.0(10y ago)1911.3k41MITPHPPHP &gt;=5.4.0

Since Jul 27Pushed 10y ago5 watchersCompare

[ Source](https://github.com/emilsundberg/Laravel-HTML-email-inliner)[ Packagist](https://packagist.org/packages/emil/inliner)[ RSS](/packages/emil-inliner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (1)

Laravel HTML Email Inliner
==========================

[](#laravel-html-email-inliner)

To make HTML email work, you need to put all CSS rules inline to make sure it works everywhere. It's a pain when developing your code and that's why you want a package to do it on the fly.

This is just a Laravel wrapper for PHP-premailer ()

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

[](#installation)

### Ruby gems

[](#ruby-gems)

This package require two Ruby Gems: Premailer and Getopt.

```
$ sudo gem install premailer
$ sudo gem install getopt

```

Check this Gists for more info on dependencies on Ubuntu (Laravel Homestead):

### Laravel

[](#laravel)

Begin by installing this package through Composer.

```
$ composer require snowfire/beautymail

```

Add Inliner as a service provider in app.php

```
'providers' => [
	Emil\Inliner\InlinerServiceProvider::class,
]

```

Add Inliner alias

```
'aliases' => [
	Emil\Inliner\Facades\Laravel\Inliner::class
]

```

Laravel 4.2
-----------

[](#laravel-42)

Use the `1.x` releases/branch

Quick Example
-------------

[](#quick-example)

#### Disable/enable the inliner

[](#disableenable-the-inliner)

*The inliner is enabled by default*

```
Inliner::disable();
Inliner::enable();
```

#### Check if the inliner is enabled/disabled

[](#check-if-the-inliner-is-enableddisabled)

```
Inliner::isDisabled();
Inliner::isEnabled();
```

#### Change an option

[](#change-an-option)

```
Inliner::setOption('name', value);
```

*Sending in an option that does not exist will throw*`InvalidArgumentException`

##### Options

[](#options)

- `css_to_attributes`
- `include_link_tags`
- `include_style_tags`
- `input_encoding`
- `preserve_reset`
- `preserve_styles`
- `remove_classes`
- `remove_comments`
- `remove_ids`
- `remove_scripts`
- `replace_html_entities`

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~148 days

Total

5

Last Release

3719d ago

Major Versions

v1.0.2 → 2.0.02016-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/4513288839d184d222046f71ee9e2e29ad676e4da76329151b517939bf1b5139?d=identicon)[emilsundberg](/maintainers/emilsundberg)

---

Top Contributors

[![emilsundberg](https://avatars.githubusercontent.com/u/215958?v=4)](https://github.com/emilsundberg "emilsundberg (12 commits)")[![georgaberg](https://avatars.githubusercontent.com/u/1383273?v=4)](https://github.com/georgaberg "georgaberg (3 commits)")[![pabloleone](https://avatars.githubusercontent.com/u/2090437?v=4)](https://github.com/pabloleone "pabloleone (3 commits)")[![DavidLemayian](https://avatars.githubusercontent.com/u/877919?v=4)](https://github.com/DavidLemayian "DavidLemayian (1 commits)")

### Embed Badge

![Health badge](/badges/emil-inliner/health.svg)

```
[![Health](https://phpackages.com/badges/emil-inliner/health.svg)](https://phpackages.com/packages/emil-inliner)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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