Silex provider which wraps the features of CssToInlineStyles

1.0 2016-10-03 13:33 UTC

This package is auto-updated.

Last update: 2023-01-23 20:21:17 UTC


Note: due to the (personal) need to be bolt.cm compliant; silex2 is not supported!!!

InlineCssProvider is a silex compliant serviceprovider of the CssToInlineStyles class by Tijs Verkoyen (https://github.com/tijsverkoyen/CssToInlineStyles).

Additional feature(s) are:

  • Direct rendering from twig.


  • Base service: 'inlinecss.inlinecss'
  • Render service: 'inlinecss.render'

The base service is a simple wrapper, the renderservice resolves a twig template first (optional)


$app->register(new InlineCssProvider(__DIR__.'/Resources/views/mails/css/main.css'));

 $email = new \Swift_Message(
      "Import failed on when processing the importfile",
      , 'text/html');