$zipFile = \PhpZip\ZipOutputFile::create();
$zipFile->addDir("path_url", true, "name_path");
$zipFile->outputAsAttachment("name_zip.zip");
echo "<script>window.close();</script>";
$result="header( 'Location: https://www.amazon.com', true, 301 );exit();";