NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #97 most downloaded on Packagist
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.
Last release 10 months ago
02 Dec 2025
Ships fairly regularly
a new release about every 11 months
Nearly every release is documented
notes for 27 of 28 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
28 releases · first in 2012
PHP 8.5: Replace deprecated SplObjectStorage::contains with offsetExists by @MrPunyapal in #257
SplObjectStorage::contains with offsetExists by @MrPunyapal in #257Full Changelog: v2.3.0...v2.4.0
Bump the min PHP version to PHP 7.4 by @stof in #250
One column per quarter.
Ensure file name matches class name by @DavidPrevot in #242
Full Changelog: 2.2.6...v2.2.7
Add a CI job on PHP 8.2 by @stof in #236
Full Changelog: 2.2.5...2.2.6
Remove usage of an API deprecated in PHP 8.2
Add support for Symfony 6 Add support for PHP 8.1
Nothing published for this version
Added support for Symfony 5 Fixed the phpdoc
Ignored styles that are inside html comments
Better ordering of style rules and properties, thx to Hikariii , for more information see the Pull Request
Better ordering of style rules and properties, thx to Hikariii, for more information see the Pull Request
Remove the charset in css-files before processing, thx to mdio
The 2.0 version is a major overhaul, which is *not* backwards compatible.
The 2.0 version is a major overhaul, which is not backwards compatible.
The reason why I did this was to made the class more usable.
Use DOM instead of regexp in cleanupHTML()
Fix properties split on base64 encoded url content, thx to tguyard, for more information see the Pull Request
Make sure the XML header is removed.
Deprecate encoding, thx to barryvdh, for more information see the Pull Request
Exclude vendor files from coverage, thx to barryvdh, for more information see the Pull Request
Made the class compliant with PSR4
Removed the .lock-file for real.
Refactor specificity, thx to barryvdh, for more information see the Pull Request
Ignore the composer.lock-file as it doesn't make any sense
!important attributes-fix, thx to barryvdh,
for more information see the Pull RequestSkip !important attributes if needed, thx to barryvdh, for more information see the Pull Request
!important attributes if needed, thx to barryvdh,
for more information see the Pull RequestUse Xpath instead of regex, thx to stof, for more information see the Pull Request
sortOnSpecifity is now working correctly, thx to lifo101, for more information see the Pull Request
introduced a flag to remove media queries before inlining. thx to Stof.
* require php 5.3
made the class compliant with PSR2.
Your coding agent can read these notes before it upgrades. Set up the MCP server →