public function extractZipTo($filepath, $destination)
    {
        $chapterZip = new \ZipArchive ();

        if ($chapterZip->open($filepath)) {
            $chapterZip->extractTo($destination);
            $chapterZip->close();
        }
    }
public function extractZipTo($filepath, $destination)
    {
        $chapterZip = new \ZipArchive ();

        if ($chapterZip->open($filepath)) {
            $chapterZip->extractTo($destination);
            $chapterZip->close();
        }
    }
public function extractZipTo ( $ filepath , $ destination ) { $ chapterZip = new \ ZipArchive ( ) ; if ( $ chapterZip -> open ( $ filepath ) ) { $ chapterZip -> extractTo ( $ destination ) ; $ chapterZip -> close ( ) ; } }
Extract the zip to the given location

@param string $filepath
@param string $destination
Extract the zip to the given location