Author: Manuel Lemos
Package: PHP Compress JSON, HTML and Text Output
This possibility can make the Web servers respond faster to HTTP requests by reducing the amount transferred to the Web browser, especially when the response is in text formats like HTML, JSON, or plain text.
This package takes advantage of this possibility to reduce the size of HTTP responses generated by PHP scripts.
The package can compress the response data even more when the output format is HTML because it also compresses HTML by eliminating unnecessary parts, like comments, spaces, and line breaks.
About the PHP Compress JSON, HTML and Text Output Package
The basic purpose is: Compress the output of the current HTTP response
Here follows in more detail what it does:
This class can compress the output of the current HTTP response.
The class provides a function that the current script can use as a callback function to process the script output to compress it to reduce its size.
It can process the responses of requests that output data in JSON, HTML, or plain text format.
The class also issues HTTP response headers that are adequate for each type of output format.
This package was considered notable for implementing its benefits in a way that is worth noticing.
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 as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
No comments were submitted yet.