title: How to apply Zip Compression in GnuPG Class of PHP
body: <p>I would like to compress message using <a href="https://www.php.net/manual/en/book.gnupg.php" rel="nofollow noreferrer">GnuPG PHP extension</a></p>
  <pre><code> putenv(&quot;GNUPGHOME=/var/www/.gnupg&quot;);
   //$gpg = new gnupg();
   $res = gnupg_init();
   $rtv = gnupg_import($res, $pubkey);
   gnupg_addencryptkey($res, $rtv['fingerprint']);
   $pgp_str = gnupg_encrypt($res, $str);
  </code></pre>
  <p>I would like to pass <strong>compress-algo</strong> parameter but haven't found way to pass, can someone suggest?</p>
  <p>Thanks for help!</p>