Wrapper for compression in PHP