{"repo":"fahlisaputra/laravel-minify","free":true,"listed":false,"github":"https://github.com/fahlisaputra/laravel-minify","clone":"git clone https://github.com/fahlisaputra/laravel-minify.git","description":"Minify your blade views, html, css and obfuscate js files on the fly. Lightweight minifier for your Laravel project.","language":"PHP","stars":152,"topics":["laravel","minify","obfuscator","js-obfuscator","minifier","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Minify for Laravel Minify for Laravel is a package for minifying and obfuscating Javascript, CSS, HTML and Blade views. It runs automatically when you load a page or view. Increase your website performance on page load and save bandwidth. Obfuscate your Javascript to protect your code from being stolen. Comparison This image shows the difference in size between the original file and the minified file of default welcome.blade.php Laravel. The original file size is 28.7 KB and the minified file size is 25.7 KB. The minified file size is 10% smaller than the original file size. If you minify all your asset files, you can save up to 50% of your bandwidth. This will make your website load faster and save your hosting cost. When you have big files, the difference in size will be even greater. Installation Minify for Laravel requires PHP 7.2 or higher. This particular version supports Laravel 8.x, 9.x, 10.x, 11.x, and 12.x. To get the latest version, simply require the project using Composer: Configuration Minify for Laravel supports optional configuration. To get started, you'll need to publish all vendor assets: This will create a config/minify.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases. Register the Middleware (Laravel 11 or newer) In order Minify for Laravel can intercept your request to minify and obfuscate, you need to add the Minify middleware to the boo","default_branch":null,"files":null,"tree":[],"storefront":"/r/fahlisaputra","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fahlisaputra/laravel-minify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}