Compression helpers for PHP