1$zip = new ZipArchive;
2$res = $zip->open('file.zip');
3if ($res === TRUE) {
4 $zip->extractTo('/myzips/extract_path/');
5 $zip->close();
6 echo 'woot!';
7} else {
8 echo 'doh!';
9}
1(sudo) yum install zip unzip php-zip
2(sudo) apt install zip unzip php-zip