Please tell me how to use 'usePassword' method for extract zip file which is password protected.
$files = array_diff(scandir($zipdir), array('..', '.'));
$zip = new \Chumper\Zipper\Zipper;
foreach($files as $key=>$value1){
Zipper::make($zipdir.'/'.$value1)->extractTo($extractdir);
}
Here in above code I want to usePassword method for zip extract using password, becuase the $value1 is zip which is password protected. But I dont know how to use this method for Zipper. Please help me.
Thanks in advance
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire