
A simple HTML minifier for Laravel 5, 6, 7, 8 & 9.
Laravel HTMLMin is a powerful tool designed for Laravel developers looking to optimize their application's front-end performance. Maintained by Raza Mehdi, this simple HTML minifier leverages Mr. Clay's Minify package to effectively reduce the size of HTML responses, promoting faster loading times and improved user experience. With support for various Laravel versions (from 5.1 to 8.x) and a straightforward installation process, it stands out as a valuable addition to any Laravel project.
The package also maximizes its capabilities by offering options for Blade view minification at compile time, further enhancing its utility. Laravel HTMLMin can help you ensure your application is not only efficient but also maintains clean and manageable code.
Easy Installation: Requires PHP 5.5+ and can be quickly added to your project via Composer, making setup hassle-free.
Supports Multiple Versions: Compatible with Laravel versions 5.1 through 8.x, making it versatile for a range of applications.
Blade Optimizations: Automatically minifies Blade views during compilation, ensuring that your views are as lightweight as possible with no extra processing time.
Configurable Options: Offers three configuration settings—automatic optimizations, forced minification, and file exclusions—allowing you to customize its behavior based on your project's needs.
Facades for Easy Access: Provides a facade implementation (Facades\HTMLMin) for easy access to minification methods, enhancing usability within your Laravel application.
Multiple Minification Methods: Features methods for minifying not only HTML but also CSS and JavaScript, enabling comprehensive optimization.
Inline Minification: Capable of minifying inline CSS and JS, ensuring every part of your front-end code is optimized.
SIimple Interface: Follows a standardized approach with MinifierInterface, ensuring that any additional minifier classes you create will seamlessly integrate with HTMLMin.
