Ne-Lexa / php-zip

PhpZip is a php-library for extended work with ZIP-archives.
MIT License
491 stars 60 forks source link

Make zlib optional #71

Open larowlan opened 3 years ago

larowlan commented 3 years ago
Q A
Bug fix? no
New feature? yes

The composer.json currently has a dependency on ext-zlib, however this project is useful without it, if you use ZipCompressionMethod::STORED for all files, you can still do useful things like create archive, password protect them.

This change moves the decision about which format to automatically use behind a method on FileUtils that also does the extension loaded check