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 auto-updated.
Last update: 2024-09-18 02:47:03 UTC
README
此项目已不再维护。
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 !