To compress an entire directory into a zip file you use the
The extension will dispatch one of two events to determine the result of the unzip:
ZipUtilsEvent.ZIP_COMPLETE: Indicates the zip is complete and the zip file is available
ZipUtilsEvent.ZIP_ERROR: Indicates there was an error zipping the file
There is also a progress event that will be dispatched at intervals. Depending on the operating system but generally after each file is added to the zip.