【文件属性】:
文件名称:php-archive:纯PHP实现,可读写TAR和ZIP归档文件
文件大小:39KB
文件格式:ZIP
更新时间:2021-05-09 13:45:02
php compression php-library zip extract
PHPArchive-纯PHP ZIP和TAR处理
该库允许处理新的ZIP和TAR存档,而无需任何特殊PHP扩展(压缩需要gz和bzip)。 它可以创建新文件或提取现有文件。
为简单起见,不支持对现有档案进行修改(添加或删除文件)。
安装
使用作曲家:
php composer.phar require splitbrain/php-archive
用法
Zip和Tar类的用法基本相同。 以下是使用TAR入门的一些示例。
查看以获取更多信息。
require_once 'vendor/autoload.php' ;
use splitbrain\ PHPArchive \ Tar ;
// To list the contents of an existing TAR archive, open() it and use
// contents() on it:
$ tar =