Skip to content

Releases: kiwilan/php-archive

v2.3.0

20 Mar 12:57
0d868c1
Compare
Choose a tag to compare
  • Add password option for ZIP, RAR and 7z files, using read(string $path, ?string $password = null) and readFromString(string $contents, ?string $password = null, ?string $extension = null) methods.
  • Add new Archive::class method readFromString(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 using overrideBinaryPath(string $path) method.
  • getFiles() method is now deprecated. Use getFileItems() instead.
  • New method getFileItem(string $path) to get a single file item.

v2.2.0

06 Dec 09:38
fc7575e
Compare
Choose a tag to compare

Drop symfony/process from dependencies.

v2.1.02

20 Sep 12:19
f65f9b3
Compare
Choose a tag to compare
  • All getContent() methods are now getContents()
  • Old getContent() methods are deprecated and will be removed in v3.0.0

v2.1.01

30 Aug 11:29
e43ca65
Compare
Choose a tag to compare
  • If PDF has no metadata, parser works with empty metadata

v2.1.0

28 Aug 16:25
04b2fba
Compare
Choose a tag to compare

Rework Archive::make()

  • addFile() takes two parameters now: the outputPath inside archive and pathToFile on disk
  • addFiles() is removed
  • addDirectory() takes two parameters now: relativeTo path inside archive and the path of directory on the disk
    • If the path is /path/to/dir and relativeTo is ./dir, the directory will be added to archive as dir/
  • addDirectories() is removed

v2.0.02

28 Aug 10:57
e7e001d
Compare
Choose a tag to compare
  • Add skipAllowed param to Archive::class

v2.0.01

28 Aug 10:51
dfa01fe
Compare
Choose a tag to compare
  • For ArchiveZipCreate::class add extensions check: zip, epub, cbz, add an option to skip the check.
  • For Archive::class, convert path(), extension() and type() to getPath(), getExtension() and getType().
  • Add docblocks to Archive::class.

2.0.0

08 Aug 10:17
b3540b7
Compare
Choose a tag to compare

BREAKING CHANGES

  • All simple getters have now get prefix. For example, getPath() instead of path(), getFilename() instead of filename(), etc. It concerns all simple getters of BasicArchive, 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 now get prefix.

1.5.12

07 Jul 15:02
a48336c
Compare
Choose a tag to compare
  • BaseArchive can now findFiles with auto sort

1.5.11

07 Jul 11:40
6675214
Compare
Choose a tag to compare
  • BaseArchive, findFiles can now sort natural files