PHPackages                             eschmar/css-inliner-bundle - 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. eschmar/css-inliner-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

eschmar/css-inliner-bundle
==========================

Simple twig css inliner for Symfony 4.

v2.0.0(6y ago)693.2k↓20%[1 issues](https://github.com/eschmar/css-inliner-bundle/issues)1MITPHPPHP &gt;=7.1.0

Since Apr 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eschmar/css-inliner-bundle)[ Packagist](https://packagist.org/packages/eschmar/css-inliner-bundle)[ Docs](https://github.com/eschmar/css-inliner-bundle)[ RSS](/packages/eschmar-css-inliner-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (1)

CssInlinerBundle
================

[](#cssinlinerbundle)

Simple twig css inliner for Symfony using [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles).

Installation
============

[](#installation)

Composer ([Packagist](https://packagist.org/packages/eschmar/css-inliner-bundle)):

```
composer require eschmar/css-inliner-bundle ^2.0.0 # Symfony ^5.0

# or

composer require eschmar/css-inliner-bundle ^1.0.0 # Symfony ^4.1

# or

composer require eschmar/css-inliner-bundle ^0.2.0 # Symfony ^3.4
```

app/Appkernel.php (Symfony &lt;4):

```
new Eschmar\CssInlinerBundle\EschmarCssInlinerBundle(),
```

Usage
=====

[](#usage)

This bundle introduces a new tag to twig:

```
{% cssinline %}

        p {
            padding: 8px 15px;
            color: #8E2800;
            background-color: #FFB03B;
        }

    Bananaaa!
{% endcssinline %}
```

Which inlines all `` tags and strips them out afterwards. The result:

```
Bananaaa!
```

Nothing more, nothing less. Uses the amazing [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles).

License
=======

[](#license)

MIT License. Please check [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles) for its licensing.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

Every ~285 days

Total

6

Last Release

2250d ago

Major Versions

v0.2.0 → v1.0.02018-10-13

v1.0.1 → v2.0.02020-03-20

PHP version history (3 changes)v0.1.0PHP &gt;=5.3.3

v0.2.0PHP &gt;=5.6.0

v1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2345471?v=4)[Marcel Eschmann](/maintainers/eschmar)[@eschmar](https://github.com/eschmar)

---

Top Contributors

[![eschmar](https://avatars.githubusercontent.com/u/2345471?v=4)](https://github.com/eschmar "eschmar (29 commits)")[![florianajir](https://avatars.githubusercontent.com/u/3715903?v=4)](https://github.com/florianajir "florianajir (2 commits)")

---

Tags

csstoinlinestylesinline-cssphpsymfonysymfony-bundletwigsymfonytwigcssinlineCSSinline

### Embed Badge

![Health badge](/badges/eschmar-css-inliner-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/eschmar-css-inliner-bundle/health.svg)](https://phpackages.com/packages/eschmar-css-inliner-bundle)
```

###  Alternatives

[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

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