Zend\Filter\Compress\Zip::compress
Compresses the given content
Signature
public function compress(string
$content )
Parameters
$content
— string
Returns
- string
- Compressed archive
Errors/Exceptions
-
RuntimeException
- if unable to open zip archive, or error during compression