devfactory/minify
A Laravel middleware that automatically minifies HTML responses, removing unnecessary whitespace, comments, and redundant markup to shrink payloads and speed up page loads. Easy to install and configurable per route, it reduces output size without changing your views or build setup.
devfactory/minify is a narrow PHP utility for server-side CSS/JS minification. It fits only if the Laravel application already performs asset minification in PHP or needs a lightweight fallback in a legacy pipeline. It does not align with modern Laravel asset management through Vite or Laravel Mix, where minification belongs in the Node build step.How can I help you explore Laravel packages today?