Skip to content

Add Algorithm::compress() and Algorithm::decompress() #9

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

Merged
merged 3 commits into from
Jul 31, 2025

Conversation

thekid
Copy link
Member

@thekid thekid commented Jul 31, 2025

This pull request adds two methods to the io.streams.compress.Algorithm class to compress string data and decompress bytes.

use io\streams\Compression;

$compressed= Compression::named($argv[1]);

$bytes= $compressed->compress($argv[2], Compression::STRONGEST);
$data= $compressed->decompress($bytes);

@thekid thekid added the enhancement New feature or request label Jul 31, 2025
@thekid thekid merged commit b63bd38 into main Jul 31, 2025
22 checks passed
@thekid thekid deleted the feature/compress branch July 31, 2025 19:36
@thekid
Copy link
Member Author

thekid commented Jul 31, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant