GIải nén thư mục trong Php

Giải nén

$zip = new ZipArchive();//extract
$path = 'detail.zip';
$x = $zip->open($path);
if ($x) {
	$zip->extractTo(realpath('..').'/public_html'); // change this to the correct site path
	$zip->close();
}
echo realpath('..');