Registry / utility / pelago-emogrifier

pelago-emogrifier

JSON →
library8.2.0phppackagistunverified

Converts CSS styles into inline style attributes in your HTML code

composer require pelago/emogrifier
INSTALL
IMPORT
SIG · PELAGO-EMOGRIFIER
P
pelago-emogrifier
utilityphpv8.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CssInliner
use Pelago\Emogrifier\CssInliner;

Inline CSS styles into HTML.

use Pelago\Emogrifier\CssInliner; $html = '<html><body><p>Hello</p></body></html>'; $css = 'p { color: red; }'; $emogrifier = new CssInliner($html, $css); $inlinedHtml = $emogrifier->inlineCss();
Debug
Known issues
breakingRequires PHP 7.4+
fix
Upgrade PHP to version 7.4 or higher.
affects: <8.0.0
Upgrade
Version history
8.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
pelago-emogrifier — pip install pelago-emogrifier · libregistry