# GzipUnzip **Repository Path**: seirios_ls/GzipUnzip ## Basic Information - **Project Name**: GzipUnzip - **Description**: No description available - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-09-24 - **Last Updated**: 2026-01-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GzipUnzip PHP压缩解压 支持格式:zip、rar ```phpregexp $zip = new \GzipUnzip\GzipUnzip($file); try { //获取解压内容 MD5分布储存 $re = $zip->acquire('./unzip'); $exampleRe = [ '文件名1'=>'随机地址1', '文件名2'=>'随机地址2', ] var_dump($re);exit; //解压密码 $password = '111111'; //解压到一个文件 $tempFile = 'tempDir'; //解压地址 $re = $zip->extract('./unzip',$tempFile,$password) : bool; var_dump($re); } catch (Exception $e) { var_dump($e->getMessage()); } ```