PHPackages                             jandc/critical-css-silex - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jandc/critical-css-silex

ActivePackage[Utility &amp; Helpers](/categories/utility)

jandc/critical-css-silex
========================

0.5(8y ago)145

Since Jan 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/JanDC/critical-css-silex)[ Packagist](https://packagist.org/packages/jandc/critical-css-silex)[ RSS](/packages/jandc-critical-css-silex/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (5)Used By (0)

Critical CSS (silex package)
============================

[](#critical-css-silex-package)

Package, containing all the components to integrate generated automatic critical css into a silex 1.\* project

Usage
=====

[](#usage)

Installation
------------

[](#installation)

`composer require jandc/critical-css-silex`

Registering the twig wrapper (with post processor) and twig extension
---------------------------------------------------------------------

[](#registering-the-twig-wrapper-with-post-processor-and-twig-extension)

```
$app->register(new TwigWrapperProvider('twig', [new CriticalCssProcessor()]));

$app->extend('twig', function (Twig_Environment $twig, $app) {
    $twig->addExtension(new CSSFromHTMLExtractor\Twig\Extension());
    return $twig;
});
```

Mark the regions of your templates with the provided blocks
-----------------------------------------------------------

[](#mark-the-regions-of-your-templates-with-the-provided-blocks)

```
{% fold %}

    ...

{% endfold %}
```

Render your pages, using the twigwrapper
----------------------------------------

[](#render-your-pages-using-the-twigwrapper)

```
 $app['twigwrapper']->render('@templates/my/template.twig', ['foo'=>'bar']);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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

Every ~132 days

Total

4

Last Release

3002d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3265146?v=4)[Jan Decavele](/maintainers/jandc)[@JanDC](https://github.com/JanDC)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jandc-critical-css-silex/health.svg)

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

###  Alternatives

[igorw/config-service-provider

A config ServiceProvider for Silex with support for php, json and yaml.

215636.5k13](/packages/igorw-config-service-provider)

PHPackages © 2026

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