hey i already created a video about that. you can find that in my youtube channel.
$zip = new ZipArchive;
$res = $zip->open('file.zip');
if ($res === TRUE) {
$zip->extractTo('/myzips/extract_path/');
$zip->close();
echo 'woot!';
} else {
echo 'doh!';
}
use this code to unzip zip file using PHP. and you can find the detailed information from my blog : https://codeconia.com/2021/10/08/how-to-make-a-zip-file-using-php/