PHPackages                             konstantin-kuklin/assetic-static-gzip-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. konstantin-kuklin/assetic-static-gzip-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

konstantin-kuklin/assetic-static-gzip-bundle
============================================

Provide static gzip compression for css,js files via AsseticBundle

1.0.3(10y ago)149.2k↓50%41MITPHPPHP &gt;=5.3.3

Since Jul 21Pushed 8y ago3 watchersCompare

[ Source](https://github.com/KonstantinKuklin/AsseticStaticGzipBundle)[ Packagist](https://packagist.org/packages/konstantin-kuklin/assetic-static-gzip-bundle)[ Docs](https://github.com/KonstantinKuklin/AsseticStaticGzipBundle)[ RSS](/packages/konstantin-kuklin-assetic-static-gzip-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5659f3d9df9ac3672fa22313da2b9cfa8cf411f265d5baaa87304194964b6a90/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b6f6e7374616e74696e4b756b6c696e2f41737365746963537461746963477a697042756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/KonstantinKuklin/AsseticStaticGzipBundle/?branch=master)[![Minimum PHP Version](https://camo.githubusercontent.com/6bcae604170f31028bf0158bcdd3166384ca0878a804971e2d7a17d7b2e8aaef/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332e332d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/2a119ccaaeb7c92c2973fa44d2195a1fc6e615d08856ead05b66a6323e66e8de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f6e7374616e74696e2d6b756b6c696e2f617373657469632d7374617469632d677a69702d62756e646c652e737667)](https://packagist.org/packages/konstantin-kuklin/assetic-static-gzip-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/c6a64c8e54cdc2f81f2203f3077918bb41f25a789ff67210414c639187b8c433/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e7374616e74696e2d6b756b6c696e2f617373657469632d7374617469632d677a69702d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/konstantin-kuklin/assetic-static-gzip-bundle)[![Total Downloads](https://camo.githubusercontent.com/191bbd142986c8f8921d731061e2c58a1953b3dd6263286f0994de70e8003e97/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e7374616e74696e2d6b756b6c696e2f617373657469632d7374617469632d677a69702d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/konstantin-kuklin/assetic-static-gzip-bundle)

What is AsseticStaticGzipBundle?
--------------------------------

[](#what-is-asseticstaticgzipbundle)

AsseticStaticGzipBundle is a bundle which creates gzipped versions of your css and js files.

It works transparently with AsseticBundle so you don't need to modify your code.

Motivation
----------

[](#motivation)

Nginx web server can compress response data on the fly. To save time it can be configured to send an already compressed copy of a file.

Nginx plugin: [http://nginx.org/en/docs/http/ngx\_http\_gzip\_static\_module.html](http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html)

Saving CPU time.

Requirements
------------

[](#requirements)

Zip extension

PHP 5.3.3 and UP

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

[](#installation)

via Composer:

```
php composer.phar require konstantin-kuklin/assetic-static-gzip-bundle

```

Add to your config file:

```
assetic_static_gzip:
    use: true
    level: 9

```

Option `level` can be 0-9 and provide level of gzip compression type. (where: `9` - best, `0` - without compression)

Option `use` enables or disables creating compression files

Add bundle to `app/AppKernel.php`:

```
new KonstantinKuklin\AsseticStaticGzipBundle\AsseticStaticGzipBundle()

```

Documentation
-------------

[](#documentation)

Compression files will be creating with command:

```
php app/console assetic:dump

```

Output example:

```
...
02:08:24 [file+] ...app/../web/css/794c670.css
02:08:24 [gzipped file+] ...app/../web/css/794c670.css.gz
...

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 89.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 ~158 days

Total

4

Last Release

3838d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14bf2bc19526615387e37a0e04bb5110ec344663a6bc8e95c3b9947cd5b9808c?d=identicon)[KonstantinKuklin](/maintainers/KonstantinKuklin)

---

Top Contributors

[![KonstantinKuklin](https://avatars.githubusercontent.com/u/573586?v=4)](https://github.com/KonstantinKuklin "KonstantinKuklin (17 commits)")[![tommygnr](https://avatars.githubusercontent.com/u/929392?v=4)](https://github.com/tommygnr "tommygnr (2 commits)")

---

Tags

compressionassetsminificationgzip

### Embed Badge

![Health badge](/badges/konstantin-kuklin-assetic-static-gzip-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/konstantin-kuklin-assetic-static-gzip-bundle/health.svg)](https://phpackages.com/packages/konstantin-kuklin-assetic-static-gzip-bundle)
```

###  Alternatives

[kriswallsmith/assetic

Asset Management for PHP

3.7k48.9M161](/packages/kriswallsmith-assetic)[assetic/framework

Asset Management for PHP

1001.4M20](/packages/assetic-framework)[mmanos/laravel-casset

An asset management package for Laravel 4.

102.6k](/packages/mmanos-laravel-casset)[toopay/assetic-minifier

Assetic Filter for pure PHP JS and CSS minification

1356.8k3](/packages/toopay-assetic-minifier)

PHPackages © 2026

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