2017 © Pedro Peláez
 

symfony-bundle assetic-static-gzip-bundle

Provide static gzip compression for css,js files via AsseticBundle

image

konstantin-kuklin/assetic-static-gzip-bundle

Provide static gzip compression for css,js files via AsseticBundle

  • Monday, December 26, 2016
  • by KonstantinKuklin
  • Repository
  • 3 Watchers
  • 14 Stars
  • 7,348 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

Scrutinizer Code Quality Minimum PHP Version License Latest Stable Version Total Downloads, (*1)

What is AsseticStaticGzipBundle?

AsseticStaticGzipBundle is a bundle which creates gzipped versions of your css and js files., (*2)

It works transparently with AsseticBundle so you don't need to modify your code., (*3)

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., (*4)

Nginx plugin: http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html, (*5)

Saving CPU time., (*6)

Requirements

Zip extension http://php.net/manual/en/zip.installation.php, (*7)

PHP 5.3.3 and UP, (*8)

Installation

via Composer:, (*9)

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

Add to your config file:, (*10)

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), (*11)

Option use enables or disables creating compression files, (*12)

Add bundle to app/AppKernel.php:, (*13)

new KonstantinKuklin\AsseticStaticGzipBundle\AsseticStaticGzipBundle()

Documentation

Compression files will be creating with command:, (*14)

php app/console assetic:dump

Output example:, (*15)

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

The Versions

26/12 2016

dev-master

9999999-dev https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip

26/12 2016

dev-add_scrutinizer

dev-add_scrutinizer https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip

09/11 2015

1.0.3

1.0.3.0 https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip

21/07 2014

1.0.2

1.0.2.0 https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip

21/07 2014

1.0.1

1.0.1.0 https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip

21/07 2014

1.0.0

1.0.0.0 https://github.com/KonstantinKuklin/AsseticStaticGzipBundle

Provide static gzip compression for css,js files via AsseticBundle

  Sources   Download

MIT

The Requires

 

by Konstantin Kuklin

assets compression minification gzip