Skip to content

Commit

Permalink
v2.3.0
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ewilan-riviere committed Mar 20, 2024
1 parent f48ef8a commit 7114592
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/run-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ jobs:
brew install imagemagick
shell: bash

- name: Check 7z path
continue-on-error: true
run: |
which 7z
shell: bash

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kiwilan/php-archive",
"version": "2.2.0",
"version": "2.3.0",
"description": "PHP package to handle archives (.zip, .rar, .tar, .7z, .pdf) with unified API and hybrid solution (native/p7zip), designed to works with EPUB and CBA (.cbz, .cbr, .cb7, .cbt).",
"keywords": [
"php",
Expand Down

0 comments on commit 7114592

Please sign in to comment.