I know that I can compress using PHP
gzcompress($contents, 9);
But I don't like the results. Even with last version of zlib I get bigger file that output of the 7zip(deflate, of course).
So how to replace gzip headers with zlib headers (with ADLER32 checksum)