/**
* Uncompress zip file using pclzip library
*
* @param $zipFile string path to zip file
* @param $extractPath string path to location which will be extract to
*
* @return boolean true if success, false if failure
*/
function unZip($zipFile, $extractPath)
{
$pcl = new PclZip($zipFile);
if (empty($pcl)) {
return false;
}
$retVal = $pcl->extract(PCLZIP_OPT_PATH, $extractPath);
$pcl->privCloseFd();
return $retVal;
}