PHPackages                             jandc/inline-css-provider - 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. [Templating &amp; Views](/categories/templating)
4. /
5. jandc/inline-css-provider

ActiveLibrary[Templating &amp; Views](/categories/templating)

jandc/inline-css-provider
=========================

Silex provider which wraps the features of CssToInlineStyles

1.0(9y ago)11.1kISCPHP

Since Oct 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/JanDC/inline-css-provider)[ Packagist](https://packagist.org/packages/jandc/inline-css-provider)[ Docs](https://github.com/JanDC/InlineCssProvider)[ RSS](/packages/jandc-inline-css-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

InlineCssProvider
=================

[](#inlinecssprovider)

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

[](#note-due-to-the-personal-need-to-be-boltcm-compliant-silex2-is-not-supported)

InlineCssProvider is a silex compliant serviceprovider of the CssToInlineStyles class by Tijs Verkoyen ().

Additional feature(s) are:

- Direct rendering from twig.

Usage
-----

[](#usage)

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

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

sample
------

[](#sample)

 `   $app->register(new InlineCssProvider(__DIR__.'/Resources/views/mails/css/main.css'));     $email = new \Swift_Message(      "Import failed on when processing the importfile",      $app['inlinecss.render]->renderAndInlineTemplate('mails/failed_import.twig')      , 'text/html'); `

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3506d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ba1b5fd651582c600a854fe8394e75d50f3b27aeb2bdd1f37b2f3f4a0bdb76?d=identicon)[jandc](/maintainers/jandc)

---

Top Contributors

[![JanDC](https://avatars.githubusercontent.com/u/3265146?v=4)](https://github.com/JanDC "JanDC (3 commits)")

---

Tags

phptwigcsssilexEmail markup

### Embed Badge

![Health badge](/badges/jandc-inline-css-provider/health.svg)

```
[![Health](https://phpackages.com/badges/jandc-inline-css-provider/health.svg)](https://phpackages.com/packages/jandc-inline-css-provider)
```

###  Alternatives

[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)

PHPackages © 2026

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