Skip to content

Conversation

@Mezzair
Copy link
Member

@Mezzair Mezzair commented Feb 25, 2025

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.md file, enhancements to the ZSTD class, and modifications to the composer.json file.

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 the compress and decompress methods to use the Process class for better error handling and added detailed docblocks.
  • src/ZSTD.php: Introduced a private runStreamProcess method to handle stream compression and decompression with improved error handling and timeout support.

Dependency and Metadata Updates:

…STD class with improved error handling and documentation
@Mezzair Mezzair requested a review from johnwedgbury February 25, 2025 22:33
@andrii-trush
Copy link

@johnwedgbury Is there any option to merge solution and create new release?

@johnwedgbury
Copy link
Contributor

@johnwedgbury Is there any option to merge solution and create new release?

Are you having a specific issue with V1 that this will solve?

@deLTreeTech
Copy link

I believe this pull request will solve issues I have with laravel 12 and PHP 8. I got this error when I try to install:

Problem 1
- Root composer.json requires appoly/zstd-php * -> satisfiable by appoly/zstd-php[0.0.1, 0.0.2, 0.0.3].
- appoly/zstd-php[0.0.1, ..., 0.0.3] require symfony/process ^6.0 -> found symfony/process[v6.0.0, ..., v6.4.26] but the package is fixed to v7.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

@johnwedgbury
Copy link
Contributor

I believe this pull request will solve issues I have with laravel 12 and PHP 8. I got this error when I try to install:

Problem 1 - Root composer.json requires appoly/zstd-php * -> satisfiable by appoly/zstd-php[0.0.1, 0.0.2, 0.0.3]. - appoly/zstd-php[0.0.1, ..., 0.0.3] require symfony/process ^6.0 -> found symfony/process[v6.0.0, ..., v6.4.26] but the package is fixed to v7.3.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Your issue has been patched, please re-install.

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.

5 participants