PHPackages                             peepitkm/laravel-html-css-email-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. [Templating &amp; Views](/categories/templating)
4. /
5. peepitkm/laravel-html-css-email-inliner

ActiveLibrary[Templating &amp; Views](/categories/templating)

peepitkm/laravel-html-css-email-inliner
=======================================

Laravel HTML &amp; CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)

2.0.0(10y ago)040MITPHPPHP &gt;=5.4.0

Since Jul 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/peepitkm/laravel-html-css-email-inliner)[ Packagist](https://packagist.org/packages/peepitkm/laravel-html-css-email-inliner)[ RSS](/packages/peepitkm-laravel-html-css-email-inliner/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Laravel HTML &amp; CSS Email Inliner
====================================

[](#laravel-html--css-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 CssToInlineStyles ()

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

[](#installation)

### Laravel 5.x

[](#laravel-5x)

Begin by installing this package through [Composer](https://getcomposer.org).

```
$ composer require peepitkm/laravel-html-css-email-inliner

```

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.x

[](#laravel-4x)

Begin by installing this package through [Composer](https://getcomposer.org).

```
$ composer require peepitkm/laravel-html-css-email-inliner "1.x-dev"

```

Add Inliner as a service provider in app.php

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

```

Add Inliner alias

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

```

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();
```

Known Issues
------------

[](#known-issues)

- no support for pseudo selectors
- no support for [css-escapes](https://mathiasbynens.be/notes/css-escapes)
- UTF-8 charset is not always detected correctly. Make sure you set the charset to UTF-8 using the following meta-tag in the head: ``. *(Note: using `` does NOT work!)*

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

3146d ago

Major Versions

v1.0.2 → 2.0.02016-03-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3889775?v=4)[peepitkm](/maintainers/peepitkm)[@peepitkm](https://github.com/peepitkm)

---

Top Contributors

[![emilsundberg](https://avatars.githubusercontent.com/u/215958?v=4)](https://github.com/emilsundberg "emilsundberg (12 commits)")[![peepitkm](https://avatars.githubusercontent.com/u/3889775?v=4)](https://github.com/peepitkm "peepitkm (7 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/peepitkm-laravel-html-css-email-inliner/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[illuminate/view

The Illuminate View package.

13046.3M2.1k](/packages/illuminate-view)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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