PHPackages                             saskoh/conaktiv-emogrifyplugin - 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. saskoh/conaktiv-emogrifyplugin

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

saskoh/conaktiv-emogrifyplugin
==============================

Inline CSS in HTML using Emogrifier.

0.3.2(5y ago)0141BSD-3-ClausePHPPHP ^5.6 || ^7.0 || ^8.0

Since Feb 16Pushed 5y agoCompare

[ Source](https://github.com/saskoh/conaktiv-emogrifyplugin)[ Packagist](https://packagist.org/packages/saskoh/conaktiv-emogrifyplugin)[ RSS](/packages/saskoh-conaktiv-emogrifyplugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (7)Used By (1)

Emogrify Plugin
===============

[](#emogrify-plugin)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/474ce1f52cbcdc18529be02b5ef64e3c4f5a6dfe215153a6c6340d01932c47a1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62756d6d7a61636b2f73776966746d61696c65722d656d6f6772696679706c7567696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bummzack/swiftmailer-emogrifyplugin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/96ece3fe5efb9c0df857ecf393183a52655eb021fb6cc74d4a2c8bb2dc77fe16/68747470733a2f2f636f6465636f762e696f2f67682f62756d6d7a61636b2f73776966746d61696c65722d656d6f6772696679706c7567696e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/bummzack/swiftmailer-emogrifyplugin)[![Build Status](https://camo.githubusercontent.com/7318d0fc879d31fa5b75938d24c3ad0887ec4293980ca986d5b6a4de75c51a1b/68747470733a2f2f7472617669732d63692e6f72672f62756d6d7a61636b2f73776966746d61696c65722d656d6f6772696679706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bummzack/swiftmailer-emogrifyplugin)[![Latest Stable Version](https://camo.githubusercontent.com/f1a57f1c5874cab7b53ef2bc48a5114ccc213625be8b3f27ea7369599e5039ff/68747470733a2f2f706f7365722e707567782e6f72672f62756d6d7a61636b2f73776966746d61696c65722d656d6f6772696679706c7567696e2f762f737461626c65)](https://packagist.org/packages/bummzack/swiftmailer-emogrifyplugin)

Inline CSS in HTML using [Emogrifier](https://github.com/MyIntervals/emogrifier).

Installation and requirements
-----------------------------

[](#installation-and-requirements)

Install via composer, using:

```
composer require saskoh/conaktiv-emogrifyplugin

```

Requirements:

- PHP 5.6+
- Emogrifier 3.x

Usage
-----

[](#usage)

By default, the plugin will inline CSS that is part of the HTML, eg. styles defined in `` tags. You can instantiate the plugin with your own `Emogrifier` instance or change properties of the emogrifier instance. For a list of options, please head over to the [Emogrifier documentation](https://github.com/MyIntervals/emogrifier#options).

Please note, that the plugin is using one instance of `Emogrifier` to convert all message-parts, so the settings you make apply to all converted html parts.

### Supplying custom CSS

[](#supplying-custom-css)

```
$plugin = new EmogrifierPlugin();
$plugin->getEmogrifier()->setCss('.customStyle: { color: red; };');
```

**Please note:** Calling `setHtml` on the Emogrifier instance doesn't have an effect, since it will be replaced with the message body!

### Example

[](#example)

Here's how you could use the plugin to send emails with custom styles loaded from a file:

$emogrifier = new Pelago\\Emogrifier(); $emogrifier-&gt;setCss(file\_get\_contents( /\* path to your CSS file \*/ ));

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~229 days

Recently: every ~56 days

Total

6

Last Release

1859d ago

PHP version history (2 changes)0.1PHP ^5.6 || ^7.0

0.2.2PHP ^5.6 || ^7.0 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![bummzack](https://avatars.githubusercontent.com/u/1006185?v=4)](https://github.com/bummzack "bummzack (8 commits)")[![conaktiv](https://avatars.githubusercontent.com/u/68999037?v=4)](https://github.com/conaktiv "conaktiv (6 commits)")[![lozcalver](https://avatars.githubusercontent.com/u/1655548?v=4)](https://github.com/lozcalver "lozcalver (1 commits)")

---

Tags

pluginemogrifier

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/saskoh-conaktiv-emogrifyplugin/health.svg)

```
[![Health](https://phpackages.com/badges/saskoh-conaktiv-emogrifyplugin/health.svg)](https://phpackages.com/packages/saskoh-conaktiv-emogrifyplugin)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[coldtrick/profile_manager

Improved management of user and group profile fields

293.7k1](/packages/coldtrick-profile-manager)[coldtrick/widget_manager

Manage your widgets

214.3k](/packages/coldtrick-widget-manager)[coldtrick/thewire_tools

Extend the functionality of The Wire

133.2k](/packages/coldtrick-thewire-tools)

PHPackages © 2026

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