To unzip with PHP you need to have your PHP server compiled with php_zip.dll on Linux or the php_zip.dll extension active on Windows(activate it from php.ini).

$zip = zip_open("zip.zip");
//first we open the zip file, $zip is a file handler

if ($zip) {
while ($zip_entry = zip_read($zip)) {
//reading each zip entry (zip file)

$fp = fopen("zip/".zip_entry_name($zip_entry), "w");
//open the file for [...]