Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.3.0 #47

Merged
merged 5 commits into from
Mar 20, 2024
Merged

v2.3.0 #47

merged 5 commits into from
Mar 20, 2024

Conversation

ewilan-riviere
Copy link
Contributor

  • 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.

- 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.
@ewilan-riviere
Copy link
Contributor Author

Read partial archive is not ready yet, from #42

@ewilan-riviere
Copy link
Contributor Author

Publish for #46

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.90%. Comparing base (464f6b4) to head (7114592).
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #47      +/-   ##
============================================
- Coverage     90.99%   90.90%   -0.10%     
  Complexity      314      314              
============================================
  Files            14       14              
  Lines          1055     1055              
============================================
- Hits            960      959       -1     
- Misses           95       96       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ewilan-riviere ewilan-riviere merged commit 0d868c1 into main Mar 20, 2024
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant