PHP compression options
3 answers
I have no personal experience with them, but there is a whole section in the docs on Compression and Archiving Extensions
It looks like there are extensions for
If you're working directly with files on the server, the ZipArchive class (which comes with the Zip extension) looks like this: it might be the easiest to use.
+2
source to share
If an extension is available on your server, or if you can add it, LZF is what you are looking for. Otherwise gzcompress () with a compression ratio of 3 or less will be pretty fast.
0
source to share