1.1.5: A lot of fixes and new CLI utility
New features:
- Reimplemented
cam(console utility) - now it's on symfony/console and supports all features and more functions (folders, types) of UA. - Added more detailed installation instructions (
./vendor/bin/cam system:drivers) of specific drivers: AlchemyZippy, Cab, Iso, Lzma, Rar, SevenZip, TarByPear. - Added ability to track progress of archive creation - new argument
?callable $fileProgressCallableofUnifiedArchive::archiveFiles(). - Added ability to pass few directories to be placed in one in-archive directory in archiving/appending (
addFiles()/archiveFiles())[ '' => ['./folder1', './folder2'], 'README.md' => './subfolder/README.md' ] # Archive will have all folder1, folder2 contents in the root and README.md
Fixed:
- Fixed
extract()andlistContent()and their result of PclZip interface (UnifiedArchive::getPclZipInterface()) to correspond to original library (object => array). - Added tests on archiving, extraction and for PclZip-interface.
Format changes:
- Fixed counting of extracted files when extracting the whole archive in
TarByPear, TarByPhar, Zip. - Fixed calculation archive entry compressed size (approximately) and modification time, implemented entry content streaming in
TarByPhar.