Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
voku committed Oct 16, 2016
2 parents 0149220 + 31ccf0b commit 2dcc13a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
[![Build Status](https://travis-ci.org/voku/HtmlMin.svg?branch=master)](https://travis-ci.org/voku/HtmlMin)
[![Coverage Status](https://coveralls.io/repos/voku/HtmlMin/badge.svg?branch=master&service=github)](https://coveralls.io/github/voku/HtmlMin?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/voku/HtmlMin/badge.svg?branch=master)](https://coveralls.io/github/voku/HtmlMin?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/voku/HtmlMin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/voku/HtmlMin/?branch=master)
[![Latest Stable Version](https://poser.pugx.org/voku/HtmlMin/v/stable)](https://packagist.org/packages/voku/html-min)
[![Total Downloads](https://poser.pugx.org/voku/HtmlMin/downloads)](https://packagist.org/packages/voku/html-min)
[![Latest Unstable Version](https://poser.pugx.org/voku/HtmlMin/v/unstable)](https://packagist.org/packages/voku/html-min)
[![License](https://poser.pugx.org/voku/HtmlMin/license)](https://packagist.org/packages/voku/html-min)

# HTML Minifier
# HTML Compressor and Minifier

## Description

foobar
HtmlMin is a fast and very easy to use PHP5.3+ library that minifies given HTML5 source by removing extra whitespaces, comments and other unneeded characters without breaking the content structure. As a result pages become smaller in size and load faster. It will also prepare the HTML for better gzip results, by re-ranging (sort alphabetical) attributes and css-class-names.

## Usage

```php
$html = '<html>\r\n\t<body>\xc3\xa0</body>\r\n\t</html>';
$htmlMin = new HtmlMin();
echo $htmlMin->minify($html); // '<html><body>à</body></html>'
```

## Unit Test

Expand Down

0 comments on commit 2dcc13a

Please sign in to comment.