PHP Classes
PHP Classes
elePHPant
Icontem

Notable PHP package: PHP HTML Minify Class

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2016-11-29

Posted on:

Categories: Notable Packages

Compressing the HTML of the pages is one way to increase the speed of serving Web pages.

Most packages that perform this task, simply try to remove whitespaces and comments, but this is only one way to reduce the the size of the final HTML.

This package goes father by performing less obvious compression approaches like default removing attributes, changing anchor names to id, removing script and document charset attributes, removing types from script tags and style sheet link, empty attributes, removing http prefix from attributes, and removing values from empty input.

Read this article to learn more details about how this notable PHP package works.


 



The package PHP HTML Minify Class is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Compress HTML removing unnecessary data

Here follows in more detail what it does:

This class can compress HTML removing unnecessary data.

It can take a given HTML string and perform certain operations to reduce the size of the same document.

Currently it can remove comments, default attributes, anchor names, script charset attributes, the document charset attributes, type from script tags, script mime types, type from style sheet link, empty attributes, http prefix from attributes, value from empty input, whitespace around tags.

It can also sort CSS class names HTML attributes for better gzip compression, and sum up white space.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.



You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)