定制 tje3d/html-minify 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tje3d/html-minify

Composer 安装命令:

composer require tje3d/html-minify

包简介

Minifies the HTML output of Laravel 5 applications (Originally from https://github.com/fitztrev/laravel-html-minify)

README 文档

README

This package is originally from https://github.com/fitztrev/laravel-html-minify i just updated the package and made it compatible with laravel 5, And i forked and make it simple 😁

About

This package compresses the HTML output from your Laravel 5 application, seamlessly reducing the overall response size of your pages.

Other scripts that I've seen will compress the HTML output on-the-fly for each request. Instead, this package extends the Blade compiler to save the compiled template files to disk in their compressed state, reducing the overhead for each request.

Why?

Even with gzip enabled, there is still an improvement in the response size for HTML content-type documents.

Test Page w/o Gzip w/ Gzip w/ Gzip + Laravel HTML Minify
#1 8,039 bytes 1,944 bytes 1,836 bytes (5.6% improvement)
#2 377,867 bytes 5,247 bytes 4,314 bytes (17.8% improvement)

Installation

  1. composer require tje3d/html-minify
  2. Add Tje3d\HtmlMinify\HtmlMinifyServiceProvider::class to the list of providers in config/app.php.
  3. Publish your config with php artisan vendor:publish command
  4. php artisan view:clear

Options

  • enabled - boolean, default true

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固