PHPackages                             emanueleminotto/jshrink-service-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. emanueleminotto/jshrink-service-provider

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

emanueleminotto/jshrink-service-provider
========================================

Jshrink service provider for Silex 1 based on nibsirahsieu/SalvaJshrinkBundle.

1.0.0(10y ago)018MITPHPPHP &gt;=5.3.2

Since Oct 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EmanueleMinotto/JshrinkServiceProvider)[ Packagist](https://packagist.org/packages/emanueleminotto/jshrink-service-provider)[ RSS](/packages/emanueleminotto-jshrink-service-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Jshrink Service Provider
========================

[](#jshrink-service-provider)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ea2d1a0df8f5f1be5ec05d8ba368807c8d08f6a51b80ebb3f9eb7fda5d57d9f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d616e75656c656d696e6f74746f2f6a736872696e6b2d736572766963652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/emanueleminotto/jshrink-service-provider)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/70fa24e74ac26cab1bd3962a3b8b76f4760ab1a6599d272b86a28ba3dcadc2a9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456d616e75656c654d696e6f74746f2f4a736872696e6b5365727669636550726f76696465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/EmanueleMinotto/JshrinkServiceProvider)[![Coverage Status](https://camo.githubusercontent.com/24808bd6754f16a8ce819ad25c73deb2d6d2f39346ed3b7d893e008836d53d12/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f456d616e75656c654d696e6f74746f2f4a736872696e6b5365727669636550726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EmanueleMinotto/JshrinkServiceProvider/code-structure)[![Quality Score](https://camo.githubusercontent.com/668253e539e4a94216c8bf491c8f36feb57da22c79e9d0c8d60acfdfe05428db/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456d616e75656c654d696e6f74746f2f4a736872696e6b5365727669636550726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EmanueleMinotto/JshrinkServiceProvider)

A [Jshrink](https://github.com/tedious/JShrink) provider for Silex based on [nibsirahsieu/SalvaJshrinkBundle](https://github.com/nibsirahsieu/SalvaJshrinkBundle).

Install
-------

[](#install)

Via Composer

```
$ composer require emanueleminotto/jshrink-provider
```

Usage
-----

[](#usage)

Initialize it using `register`

```
use EmanueleMinotto\JshrinkServiceProvider\JshrinkServiceProvider;

$app->register(new JshrinkServiceProvider(), array(
    'jshrink.cache_dir' => '/your/cache/path', // default: sys_get_temp_dir()
    'jshrink.enabled' => true,
    'jshrink.flagged_comments' => true,
));
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Emanuele Minotto](https://github.com/EmanueleMinotto)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3866d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b6fbd038f22a54716027eb7ce30c6cafd8e59c138ae58b3c2516c34ccfef7f?d=identicon)[EmanueleMinotto](/maintainers/EmanueleMinotto)

---

Top Contributors

[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (5 commits)")

---

Tags

twigjavascriptminifyasseticsilexjshrink

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/emanueleminotto-jshrink-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/emanueleminotto-jshrink-service-provider/health.svg)](https://phpackages.com/packages/emanueleminotto-jshrink-service-provider)
```

###  Alternatives

[nochso/html-compress-twig

Twig extension for compressing HTML and inline CSS/Javascript

84468.6k8](/packages/nochso-html-compress-twig)[voku/html-compress-twig

Twig extension for compressing HTML

252.3M](/packages/voku-html-compress-twig)[odan/twig-assets

Caching and compression for Twig assets (JavaScript and CSS).

2223.0k4](/packages/odan-twig-assets)

PHPackages © 2026

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