Releases: kiwilan/php-archive
Releases · kiwilan/php-archive
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::class
methodreadFromString(string $contents, ?string $password = null, ?string $extension = null)
to read an archive from a string - When you read RAR or 7z archives with
p7zip
binary, 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: theoutputPath
inside archive andpathToFile
on diskis removedaddFiles()
addDirectory()
takes two parameters now:relativeTo
path inside archive and thepath
of directory on the disk- If the
path
is/path/to/dir
andrelativeTo
is./dir
, the directory will be added to archive asdir/
- If the
is removedaddDirectories()
v2.0.02
- Add
skipAllowed
param toArchive::class
v2.0.01
- For
ArchiveZipCreate::class
add 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
get
prefix. For example,getPath()
instead ofpath()
,getFilename()
instead offilename()
, etc. It concerns all simple getters ofBasicArchive
,ArchiveItem
,ArchiveStat
,PdfMeta
,ArchiveCreate
classes.
Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have nowget
prefix.
1.5.12
BaseArchive
can nowfindFiles
with auto sort
1.5.11
BaseArchive
,findFiles
can now sort natural files