PHPackages                             raivisdejus/html-minifier - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. raivisdejus/html-minifier

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

raivisdejus/html-minifier
=========================

The Blink HTMLTokenizer ported to PHP.

0.5.0(7y ago)12.1k1BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jun 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/raivisdejus/html-minifier)[ Packagist](https://packagist.org/packages/raivisdejus/html-minifier)[ Docs](https://github.com/raivisdejus/html-minifier)[ RSS](/packages/raivisdejus-html-minifier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

html-minifier
=============

[](#html-minifier)

The Blink HTMLTokenizer ported to PHP and minify HTML.

[![Build Status](https://camo.githubusercontent.com/31d1666435fa28e9fffafd1bbaa18fe591548c2b9a1c0a99e07637ed9c90074c/68747470733a2f2f7472617669732d63692e6f72672f7a61696e696e6e6172692f68746d6c2d6d696e69666965722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/zaininnari/html-minifier)[![Coverage Status](https://camo.githubusercontent.com/a2e0ee8a78559d4391ddd4a72ebf7da31c9ccf96ae8efb603e21d02cb19141d4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7a61696e696e6e6172692f68746d6c2d6d696e69666965722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/zaininnari/html-minifier?branch=master)

Requirements
------------

[](#requirements)

- Any flavor of PHP 5.3 should do
- \[optional\] PHPUnit 3.5+ to execute the test suite (phpunit --version)

Use
---

[](#use)

Create composer.json. \[composer.json\]

```
{
    "require": {
        "raivisdejus/html-minifier": "*"
    }
}
```

Download composer.phar and install.

```
curl -sS https://getcomposer.org/installer | php
php composer.phar install
```

```
