承接 konstantin-kuklin/assetic-static-gzip-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

konstantin-kuklin/assetic-static-gzip-bundle

Composer 安装命令:

composer require konstantin-kuklin/assetic-static-gzip-bundle

包简介

Provide static gzip compression for css,js files via AsseticBundle

README 文档

README

Scrutinizer Code Quality Minimum PHP Version License Latest Stable Version Total Downloads

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:

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

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
...

统计信息

  • 总下载量: 9.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-07-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固