0x1881/laravel-html-minify

laravel html minify with regex

Maintainers

👁 0x1881

Package info

github.com/0x1881/laravel-html-minify

Homepage

pkg:composer/0x1881/laravel-html-minify

Fund package maintenance!

0x1881

Statistics

Installs: 196

Dependents: 0

Suggesters: 0

Stars: 1

2.4.1 2024-01-09 19:44 UTC

Requires

  • php: >=5.5.9
  • illuminate/support: 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT bfbd46fb61520c903e72605d5a769362e05d043c

  • Mehmet Can <1881x0.woop@gmail.com>

laravellaravel-html-minify0x1881

This package is auto-updated.

Last update: 2026-06-10 01:27:38 UTC


README

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

Installation

You can install the package via composer:

composer require 0x1881/laravel-html-minify

Usage

Publish the config file if the defaults doesn't suite your needs:

php artisan vendor:publish --tag=LaravelHtmlMinify

The following config file will be published in config/laravel-html-minify.php

return [
 'enable' => env('LARAVEL_HTML_MINIFY', true),

 'skip_route' => [
 'dashboard',
 'dashboard.*',
 ],

 'skip_path' => [
 'admin',
 'admin/*',
 ],
];

You should add middleware to your web middleware group within your app/Http/Kernel.php file:

\C4N\LaravelHtmlMinify\Middlewares\LaravelHtmlMinify::class

Add in ENV

LARAVEL_HTML_MINIFY=true

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 1881x0@gmail.com instead of using the issue tracker.

Credits

License

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