Download the PHP package konstantin-kuklin/assetic-static-gzip-bundle without Composer
On this page you can find all versions of the php package konstantin-kuklin/assetic-static-gzip-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download konstantin-kuklin/assetic-static-gzip-bundle
More information about konstantin-kuklin/assetic-static-gzip-bundle
Files in konstantin-kuklin/assetic-static-gzip-bundle
Package assetic-static-gzip-bundle
Short Description Provide static gzip compression for css,js files via AsseticBundle
License MIT
Homepage https://github.com/KonstantinKuklin/AsseticStaticGzipBundle
Informations about the package assetic-static-gzip-bundle
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
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
Saving CPU time.
Requirements
Zip extension http://php.net/manual/en/zip.installation.php
PHP 5.3.3 and UP
Installation
via Composer:
Add to your config file:
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
:
Documentation
Compression files will be creating with command:
Output example: