PHP Classes

Laravel Minify HTML Output: Minify the HTML generated using Blade templates

Recommend this page to a friend!
  Info   View files Documentation   View files View files (16)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 38 This week: 1All time: 10,875 This week: 560Up
Version License PHP version Categories
laravel-html-minify 1.0.0MIT/X Consortium ...5HTML, PHP 5, Compression, Performance...
Description 

Author

This package can be used to minify the HTML generated using Blade templates.

It provides a service that can be used in Laravel applications to optimize the site of the HTML output to of pages generated by those applications. Currently it can:

- Remove white spaces and tags before and after HTML tags
- Remove comments
- Replace multiple empty lines with just spaces and tabs with with a single empty line
- Remove spaces and tabs that are between two HTML tags
- Remove spaces, line breaks and tabs:
* After an end curly brace eventually followed by a comma
* Between and end brace and and start curly brace
* Between a comma and a curly brace
* Between a tag name and a tag value

Picture of Dipesh Sukhia
Name: Dipesh Sukhia <contact>
Classes: 4 packages by
Country: ???
Age: ???
All time rank: 3991
Week rank: 416 Up
Innovation award
Innovation award
Nominee: 2x

Documentation

description of the package

Latest Version on Packagist Build Status Quality Score Total Downloads

This package helps to minify your project`s html (blade file) output.

Installation

You can install the package via composer:

composer require dipeshsukhia/laravel-html-minify

Usage

php artisan vendor:publish --tag=LaravelHtmlMinify

add in env
for enable
Html_Minify = true
for disable
Html_Minify = false

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email dipesh.sukhia@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


  Files folder image Files  
File Role Description
Files folder imagesrc (3 files, 2 directories)
Files folder imagetests (1 file)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imageconfig (1 file)
Files folder imageMiddleware (1 file)
  Plain text file LaravelHtmlMinify.php Class Class source
  Plain text file LaravelHtmlMinifyFacade.php Class Class source
  Plain text file LaravelHtmlMinifyServiceProvider.php Class Class source

  Files folder image Files  /  src  /  config  
File Role Description
  Accessible without login Plain text file config.php Aux. Auxiliary script

  Files folder image Files  /  src  /  Middleware  
File Role Description
  Plain text file LaravelHtmlMinify.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file ExampleTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:38
This week:1
All time:10,875
This week:560Up