Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the functionality and documentation of the PHP library for Zstandard compression. The most important changes include updates to the
README.mdfile, enhancements to theZSTDclass, and modifications to thecomposer.jsonfile.Documentation Improvements:
README.md: Clarified installation instructions for ZSTD and added examples for compressing and decompressing files without specifying output paths. [1] [2]README.md: Added information on specifying timeouts for stream operations and detailed exception handling.Code Enhancements:
src/ZSTD.php: Refactored thecompressanddecompressmethods to use theProcessclass for better error handling and added detailed docblocks.src/ZSTD.php: Introduced a privaterunStreamProcessmethod to handle stream compression and decompression with improved error handling and timeout support.Dependency and Metadata Updates:
composer.json: Updated PHP version requirement to^8.0and added a new maintainer. [1] [2]