ticketpark / elibyy-zip
该软件包最新版本(1.0)没有可用的许可证信息。
一个简单且强大的zip操作库
1.0
2017-04-10 08:55 UTC
Requires
- php: >=5.4.0
- ext-zip: *
Requires (Dev)
- ext-zip: *
- phpunit/phpunit: ~3.7
Suggests
- ext-zip: Some PHP versions do not include it by default
This package is not auto-updated.
Last update: 2024-09-15 03:18:53 UTC
README
这是https://github.com/elibyy/Zip的一个分支,它意外被删除并放弃了,没有任何预先通知。
Elibyy Zip
一个面向对象的PHP库,用于操作存档
适配器
该库目前支持以下格式
- zip
- PHP zip
- Phar
- TAR
- BZIP2
- GZ
以下扩展
- .zip
- .phar
- .tar
- .bz2
- .gz
API 示例
use Elibyy\Reader $reader = new Reader('/path/to/file.zip'); $reader->getFiles(); #will return File[] $reader->addFile('/path/to/file.txt','my/inner/path/file.txt'); #will add a file to the archive with path my/inner/path $reader->removeFileByName('file.txt');
文档托管在 read the docs !