🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
此扩展可以让你透明地读写ZIP压缩文档以及它们里面的文件。 [https://pecl.php.net/package/zip](https://pecl.php.net/package/zip) * [预定义常量](https://www.php.net/manual/en/zip.constants.php) * [例子](https://www.php.net/manual/en/zip.examples.php) * [ZipArchive](https://www.php.net/manual/en/class.ziparchive.php)— ZipArchive类 * [ZipArchive :: addEmptyDir](https://www.php.net/manual/en/ziparchive.addemptydir.php)—添加一个新目录 * [ZipArchive :: addFile](https://www.php.net/manual/en/ziparchive.addfile.php)—从给定路径将文件添加到ZIP存档 * [ZipArchive :: addFromString](https://www.php.net/manual/en/ziparchive.addfromstring.php)—使用文件内容将文件添加到ZIP存档 * [ZipArchive :: addGlob](https://www.php.net/manual/en/ziparchive.addglob.php)—通过glob模式从目录添加文件 * [ZipArchive :: addPattern-](https://www.php.net/manual/en/ziparchive.addpattern.php)通过PCRE模式从目录添加文件 * [ZipArchive :: close](https://www.php.net/manual/en/ziparchive.close.php)—关闭活动存档(已打开或新创建) * [ZipArchive :: count](https://www.php.net/manual/en/ziparchive.count.php)—计算achive中的文件数 * [ZipArchive :: deleteIndex](https://www.php.net/manual/en/ziparchive.deleteindex.php)—使用其索引删除存档中的条目 * [ZipArchive :: deleteName-](https://www.php.net/manual/en/ziparchive.deletename.php)使用名称删除存档中的条目 * [ZipArchive :: extractTo](https://www.php.net/manual/en/ziparchive.extractto.php)—提取存档内容 * [ZipArchive :: getArchiveComment](https://www.php.net/manual/en/ziparchive.getarchivecomment.php)—返回Zip存档注释 * [ZipArchive :: getCommentIndex](https://www.php.net/manual/en/ziparchive.getcommentindex.php)—使用条目索引返回条目的注释 * [ZipArchive :: getCommentName](https://www.php.net/manual/en/ziparchive.getcommentname.php)—使用条目名称返回条目的注释 * [ZipArchive :: getExternalAttributesIndex](https://www.php.net/manual/en/ziparchive.getexternalattributesindex.php)—检索由其索引定义的条目的外部属性 * [ZipArchive :: getExternalAttributesName](https://www.php.net/manual/en/ziparchive.getexternalattributesname.php)—检索由其名称定义的条目的外部属性 * [ZipArchive :: getFromIndex](https://www.php.net/manual/en/ziparchive.getfromindex.php)—使用其索引返回条目内容 * [ZipArchive :: getFromName](https://www.php.net/manual/en/ziparchive.getfromname.php)—使用其名称返回条目内容 * [ZipArchive :: getNameIndex](https://www.php.net/manual/en/ziparchive.getnameindex.php)—使用条目的索引返回条目的名称 * [ZipArchive :: getStatusString](https://www.php.net/manual/en/ziparchive.getstatusstring.php)—返回状态错误消息,系统和/或邮政编码消息 * [ZipArchive :: getStream](https://www.php.net/manual/en/ziparchive.getstream.php)—将文件处理程序获取到由其名称定义的条目(只读) * [ZipArchive :: locateName](https://www.php.net/manual/en/ziparchive.locatename.php)—返回档案中条目的索引 * [ZipArchive :: open](https://www.php.net/manual/en/ziparchive.open.php)—打开一个ZIP文件档案 * [ZipArchive :: registerCancelCallback](https://www.php.net/manual/en/ziparchive.registercancelcallback.php)—注册回调以允许在归档关闭期间取消。 * [ZipArchive :: registerProgressCallback](https://www.php.net/manual/en/ziparchive.registerprogresscallback.php)—注册一个回调以在归档关闭期间提供更新。 * [ZipArchive :: renameIndex](https://www.php.net/manual/en/ziparchive.renameindex.php)—重命名由其索引定义的条目 * [ZipArchive :: renameName-](https://www.php.net/manual/en/ziparchive.renamename.php)重命名由其名称定义的条目 * [ZipArchive :: replaceFile](https://www.php.net/manual/en/ziparchive.replacefile.php)—用给定路径替换ZIP存档中的文件 * [ZipArchive :: setArchiveComment](https://www.php.net/manual/en/ziparchive.setarchivecomment.php)—设置ZIP存档的注释 * [ZipArchive :: setCommentIndex](https://www.php.net/manual/en/ziparchive.setcommentindex.php)—设置由其索引定义的条目的注释 * [ZipArchive :: setCommentName](https://www.php.net/manual/en/ziparchive.setcommentname.php)—设置由其名称定义的条目的注释 * [ZipArchive :: setCompressionIndex](https://www.php.net/manual/en/ziparchive.setcompressionindex.php)—设置由其索引定义的条目的压缩方法 * [ZipArchive :: setCompressionName](https://www.php.net/manual/en/ziparchive.setcompressionname.php)—设置由其名称定义的条目的压缩方法 * [ZipArchive :: setEncryptionIndex](https://www.php.net/manual/en/ziparchive.setencryptionindex.php)—设置由其索引定义的条目的加密方法 * [ZipArchive :: setEncryptionName](https://www.php.net/manual/en/ziparchive.setencryptionname.php)—设置由其名称定义的条目的加密方法 * [ZipArchive :: setExternalAttributesIndex](https://www.php.net/manual/en/ziparchive.setexternalattributesindex.php)—设置由其索引定义的条目的外部属性 * [ZipArchive :: setExternalAttributesName](https://www.php.net/manual/en/ziparchive.setexternalattributesname.php)—设置由条目名称定义的条目的外部属性 * [ZipArchive :: setMtimeIndex](https://www.php.net/manual/en/ziparchive.setmtimeindex.php)—设置由其索引定义的条目的修改时间 * [ZipArchive :: setMtimeName](https://www.php.net/manual/en/ziparchive.setmtimename.php)—设置由其名称定义的条目的修改时间 * [ZipArchive :: setPassword](https://www.php.net/manual/en/ziparchive.setpassword.php)—设置活动存档的密码 * [ZipArchive :: statIndex](https://www.php.net/manual/en/ziparchive.statindex.php)—获取由其索引定义的条目的详细信息 * [ZipArchive :: statName-](https://www.php.net/manual/en/ziparchive.statname.php)获取由其名称定义的条目的详细信息 * [ZipArchive :: unchangeAll](https://www.php.net/manual/en/ziparchive.unchangeall.php)—撤消存档中所做的所有更改 * [ZipArchive :: unchangeArchive](https://www.php.net/manual/en/ziparchive.unchangearchive.php)—还原存档中完成的所有全局更改 * [ZipArchive :: unchangeIndex](https://www.php.net/manual/en/ziparchive.unchangeindex.php)—将所有所做的更改还原为给定索引处的条目 * [ZipArchive :: unchangeName](https://www.php.net/manual/en/ziparchive.unchangename.php)—将完成的所有更改还原为具有给定名称的条目 ***** * [zip函数](https://www.php.net/manual/en/ref.zip.php) * [zip\_close](https://www.php.net/manual/en/function.zip-close.php)—关闭一个ZIP文件档案 * [zip\_entry\_close](https://www.php.net/manual/en/function.zip-entry-close.php)—关闭目录条目 * [zip\_entry\_compressedsize](https://www.php.net/manual/en/function.zip-entry-compressedsize.php)—检索目录条目的压缩大小 * [zip\_entry\_compression](https://www.php.net/manual/en/function.zip-entry-compressionmethod.php)方法—检索目录项的压缩方法 * [zip\_entry\_filesize](https://www.php.net/manual/en/function.zip-entry-filesize.php)—检索目录条目的实际文件大小 * [zip\_entry\_name](https://www.php.net/manual/en/function.zip-entry-name.php)—检索目录条目的名称 * [zip\_entry\_open](https://www.php.net/manual/en/function.zip-entry-open.php)—打开目录条目以供阅读 * [zip\_entry\_read](https://www.php.net/manual/en/function.zip-entry-read.php)—从打开的目录条目中读取 * [zip\_open](https://www.php.net/manual/en/function.zip-open.php)—打开一个ZIP文件档案 * [zip\_read](https://www.php.net/manual/en/function.zip-read.php)—阅读ZIP文件档案中的下一个条目