PackageTrack
Sign in Get early access

tijsverkoyen/css-to-inline-styles

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.

v2.4.0 563M downloads/mo #98 most downloaded on composer tijsverkoyen/CssToInlineStyles

What this package is like to depend on

Last release 8 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

1 release in the last 12 months

see the full history below

Release timeline

28 releases · Oct 2012 to Dec 2025
2013 2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 28
  1. v2.4.0 02 Dec 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v2.3.0...v2.4.0

    Open source →
  2. v2.3.0 21 Dec 2024
    Release notes

    What's Changed

    • Bump the min PHP version to PHP 7.4 by @stof in #250
    • fix PHP 8.4 compatibility by @xabbuh in #247
    • Remove support for unmaintained Symfony versions by @stof in #249

    New Contributors

    Full Changelog: v2.2.7...v2.3.0

    Open source →
  3. v2.2.7 08 Dec 2023
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 2.2.6...v2.2.7

    Open source →
  4. 2.2.6 03 Jan 2023
    Release notes

    What's Changed

    Full Changelog: 2.2.5...2.2.6

    Open source →
  5. 2.2.5 12 Sep 2022
    Release notes
    • Remove usage of an API deprecated in PHP 8.2
    Open source →
  6. 2.2.4 08 Dec 2021
    Release notes
    • Add support for Symfony 6
    • Add support for PHP 8.1
    Open source →
  7. 2.2.3 13 Jul 2020

    Nothing published for this version

  8. 2.2.2 24 Oct 2019
    Release notes
    • Added support for Symfony 5
    • Fixed the phpdoc
    Open source →
  9. 2.2.1 27 Nov 2017
    Release notes
    • Ignored styles that are inside html comments
    • Added support for Symfony 4
    Open source →
  10. 2.2.0 20 Sep 2016
    Release notes

    Changelog since 2.1.0

    • Better ordering of style rules and properties, thx to Hikariii,
      for more information see the Pull Request
    • Some Travis improvements, thx to barryvdh,
      for more information see the Pull Request
    • Refactor the storage of the computed properties, thx to stof,
      for more information see the Pull Request
    • Use possessive quantifiers to avoid reaching PCRE limits, thx to stof,
      for more information see the Pull Request
    • Reuse the same CssSelectorConverter, thx to stof,
      for more information see the Pull Request
    • Add a test for the removal of comments, thx to stof,
      for more information see the Pull Request
    • Add the PHP requirement in the composer.json, thx to stof,
      for more information see the Pull Request
    • Fix the detection of style tags, thx to stof,
      for more information see the Pull Request
    • Remove the useless Selector class, thx to stof,
      for more information see the Pull Request
    Open source →
  11. 2.1.0 05 Sep 2016
    Release notes
    • Better ordering of style rules and properties, thx to Hikariii, for more information see the Pull Request
    • Some Travis improvements, thx to barryvdh, for more information see the Pull Request
    • Refactor the storage of the computed properties, thx to stof, for more information see the Pull Request
    • Use possessive quantifiers to avoid reaching PCRE limits, thx to stof, for more information see the Pull Request
    • Reuse the same CssSelectorConverter, thx to stof, for more information see the Pull Request
    • Add a test for the removal of comments, thx to stof, for more information see the Pull Request
    • Add the PHP requirement in the composer.json, thx to stof, for more information see the Pull Request
    • Fix the detection of style tags, thx to stof, for more information see the Pull Request
    • Remove the useless Selector class, thx to stof, for more information see the Pull Request
    Open source →
  12. 2.0.0 23 Feb 2016
    Release notes
    • Remove the charset in css-files before processing, thx to mdio
    • Several fixes related to UTF8-encoding, thx to techi602, josh18
    • php-syntax-highlighting in the examples, thx to Big-Shark
    Open source →
  13. 1.5.5 08 Dec 2015
    Release notes

    The 2.0 version is a major overhaul, which is not backwards compatible.

    • From now on you can re-use the class for multiple mails.
    • A lot less complicated options, as in: no more options at all.
    • More separate classes which handle their own (tested) methods.
    • A lot more tests

    The reason why I did this was to made the class more usable.

    Open source →
  14. 1.5.4 01 Apr 2015
    Release notes
    • Better README + License
    • Use DOM instead of regexp in cleanupHTML()
    • Use Selector class
    • Fixed stripping of XML-header
    • Converted $cssRules to a local variable returned by processCSS
    • Allow Symfony/CssSelector 3.0
    • Removed unneeded stability change
    Open source →
  15. 1.5.3 01 Apr 2015
    Release notes
    • Fix properties split on base64 encoded url content, thx to tguyard, for more information see the Pull Request
    • Reset the xml error handling after usage, thx to stof, for more information see the Pull Request
    • Remove version from require, thx to barryvdh, for more information see the Pull Request
    Open source →
  16. 1.5.2 01 Aug 2014
    Release notes
    • Make sure the XML header is removed.
    Open source →
  17. 1.5.1 25 Jul 2014
    Release notes
    Open source →
  18. 1.5.0 25 Jul 2014
    Release notes
    Open source →
  19. 1.4.4 25 Jul 2014
    Release notes
    • Made the class compliant with PSR4
    Open source →
  20. 1.4.3 25 Jul 2014
    Release notes
    • Removed the .lock-file for real.
    Open source →
  21. 1.4.2 25 Jul 2014
    Release notes
    Open source →
  22. 1.4.1 18 Jul 2014
    Release notes
    • Ignore the composer.lock-file as it doesn't make any sense
    • Tests. Massive thumbs up for jbboehr, for more information see the Pull Request
    • Tweak for the !important attributes-fix, thx to barryvdh, for more information see the Pull Request
    Open source →
  23. 1.4.0 18 Jul 2014
    Release notes
    Open source →
  24. 1.3.0 05 May 2014
    Release notes
    • Use Xpath instead of regex, thx to stof, for more information see the Pull Request
    Open source →
  25. 1.2.1 09 Feb 2013
    Release notes
    • sortOnSpecifity is now working correctly, thx to lifo101, for more information see the Pull Request
    Open source →
  26. 1.2.0 09 Feb 2013
    Release notes
    • introduced a flag to remove media queries before inlining. thx to Stof.
    Open source →
  27. 1.1.0 13 Oct 2012
    Release notes
    • require php 5.3
    Open source →
  28. 1.0.6 13 Oct 2012
    Release notes
    • made the class compliant with PSR2.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive