Releases: kiwilan/php-archive
Releases · kiwilan/php-archive
v2.3.02
v2.3.01
v2.3.0
- Add password option for ZIP, RAR and 7z files, using
read(string $path, ?string $password = null)andreadFromString(string $contents, ?string $password = null, ?string $extension = null)methods. - Add new
Archive::classmethodreadFromString(string $contents, ?string $password = null, ?string $extension = null)to read an archive from a string - When you read RAR or 7z archives with
p7zipbinary, you can set manually the path to the binary usingoverrideBinaryPath(string $path)method. getFiles()method is now deprecated. UsegetFileItems()instead.- New method
getFileItem(string $path)to get a single file item.
v2.2.0
Drop symfony/process from dependencies.
v2.1.02
- All
getContent()methods are nowgetContents() - Old
getContent()methods are deprecated and will be removed in v3.0.0
v2.1.01
- If PDF has no metadata, parser works with empty metadata
v2.1.0
Rework Archive::make()
addFile()takes two parameters now: theoutputPathinside archive andpathToFileon diskis removedaddFiles()addDirectory()takes two parameters now:relativeTopath inside archive and thepathof directory on the disk- If the
pathis/path/to/dirandrelativeTois./dir, the directory will be added to archive asdir/
- If the
is removedaddDirectories()
v2.0.02
- Add
skipAllowedparam toArchive::class
v2.0.01
- For
ArchiveZipCreate::classadd extensions check:zip,epub,cbz, add an option to skip the check. - For
Archive::class, convertpath(),extension()andtype()togetPath(),getExtension()andgetType(). - Add docblocks to
Archive::class.
2.0.0
BREAKING CHANGES
- All simple getters have now
getprefix. For example,getPath()instead ofpath(),getFilename()instead offilename(), etc. It concerns all simple getters ofBasicArchive,ArchiveItem,ArchiveStat,PdfMeta,ArchiveCreateclasses.
Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have nowgetprefix.