PHPackages                             katod/htmlmin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. katod/htmlmin

ActiveLibrary

katod/htmlmin
=============

This is fork of HTMLMin - Simple HTML Minifier For Laravel 5, but with improved minification rules for blade files(no space between tags anymore!)

07PHP

Since Feb 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kat0d/htmlmin)[ Packagist](https://packagist.org/packages/katod/htmlmin)[ RSS](/packages/katod-htmlmin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Fork of [Laravel-HTMLMin](https://github.com/HTMLMin/Laravel-HTMLMin)
=====================================================================

[](#fork-of-laravel-htmlmin)

How to install:

```
composer require katod/htmlmin
php artisan vendor:publish --provider="Katod\HTMLMin\HTMLMinServiceProvider"
php artisan view:clear
```

if you write html in blade like this

```

		text italic

		text

```

so HTMLMin will minify code like:

```
  text italic   text
```

and i don't need spaces between tags, so i had modify few rules in BladeMinifier.php for `preg_replace()`from

```
$replace = [
    '//s' => '',
    "/
