softr/phile-page-compressor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

softr/phile-page-compressor

Composer 安装命令:

composer require softr/phile-page-compressor

包简介

PhileCMS Page Compressor Plugin

README 文档

README

A plugin for Phile to compress the html output and reduce server load.

1.1 Installation (composer)

php composer.phar require softr/phile-page-compressor:*

1.2 Installation (Download)

  • Install the latest version of Phile
  • Clone this repo into plugins/softr/pageCompressor

2. Activation

After you have installed the plugin. You need to add the following line to your config.php file:

$config['plugins']['softr\\pageCompressor'] = array('active' => true);

3. Configuration

By default the plugin is set to use the maximum level of compress. Anyway you can reduce or disable the compress level. To do so you need to add the following line to your config.php file:

$config['page_compress_level'] = 0,1,2,3 or 4;

Usage

The different compress level perform the following tasks:

0 - No Minify
1 - Safe Minify
2 - Extreme Reduce. Minify all
3 - Heavy Reduce. Save pre and code tags
4 - Light Reduce. Minify and keep comments

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-08