 |
|
Innovation award
 Nominee: 2x
Winner: 1x |
This class can be used to reduce the size of HTML documents by removing unnecessary comments and white-spaces.
It can process an HTML document passed explicitly as a string. It may also capture all the output of a PHP script and compact it before serving to the user browser.
The class can reduce the size of the document by applying several operations like unifying the document line breaks, removing white-space from script and CSS style definitions, stripping comments, and unnecessary tabs, spaces and line breaks.
It can also send deflated/gzipped content.
|
|
| Name: |
HTML Compactor |
| Base name: |
compactor |
| Description: |
Reduce HTML document size by removing white-spaces |
| Version: |
0.6.0 |
| PHP version: |
5 |
| License: |
BSD License |
| All time users: |
1619 users |
| All time rank: |
2136 |
| Week users: |
2 users |
| Week rank: |
1377  |
| |
|
 January 2008
Number 6
Prize: One subscription to the PDF edition of the magazine by PHP Architect |
Sites that serve many pages have significant costs, not only in terms of bandwidth usage, but also in terms machines needed to serve many simultaneous user requests.
One way to reduce such costs is to minimize the size of the pages served to the users. This class may be used to achieve that purpose.
It uses PHP output buffering support to capture the HTML pages generated by PHP scripts and automatically reduces the size of the pages before serving to the users.
Manuel Lemos |
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Good (83.3%) |
Good (83.3%) |
- |
Sufficient (75.0%) |
- |
- |
Not sure (57.5%) |
1023 |
| Month: |
Not yet rated by the users |
| |
Applications that use this class |
|
|
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| |
Files |
|
|