Package Data | |
---|---|
Maintainer Username: | tje3d |
Maintainer Contact: | yocmen@gmail.com (Yocsel Mendoza) |
Package Create Date: | 2017-04-30 |
Package Last Update: | 2017-04-30 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:19:37 |
Package Statistics | |
---|---|
Total Downloads: | 87 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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 😁
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.
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)
Tje3d\HtmlMinify\HtmlMinifyServiceProvider::class
to the list of providers in config/app.php.php artisan vendor:publish
commandenabled
- boolean, default true