code: private function openZipFile($zipFile)
      {
          $zipArchive = new \ZipArchive;
  
          if ($zipArchive->open($zipFile) !== true) {
              throw new \Exception('Error opening '.$zipFile);
          }
  
          return $zipArchive;
      }
docs: Open .zip archive
  
  @param string $zipFile
  
  @return \ZipArchive