wyrihaximus/compress-test-utilities
Test utilities for PHP compression packages: helpers and fixtures for verifying compress and decompress round-trips, so libraries can share consistent test coverage.
require-dev-only utility: it supplies test fixtures/helpers for packages that implement compression (gzip, zstd, brotli, etc.). The PM-relevant decision is whether your team writes compression test scaffolding in-house or consumes a small MIT package — not whether compression becomes a user-facing feature.compress/decompress interface (the WyriHaximus ecosystem pattern), shared test utilities keep fixtures and edge-case coverage consistent instead of each package inventing its own.Consider it when:
compress interface family — the utilities are scoped to that contract and will fit without glue code.Look elsewhere (or copy the pattern) when:
gzencode/gzdecode, ZipArchive, Flysystem adapters, Illuminate\Support\Facades\Http compression behavior, or a mature package like spatie/laravel-backup for the backup use case). This package provides no service provider, config, facade, or Laravel integration.compress package(s).To executives: This is a free, MIT-licensed, development-only helper library for testing compression code. It ships no runtime code to customers, adds no infrastructure cost, and requires no procurement or legal review beyond a standard license check. The business value is indirect: it shortens the test-writing loop when we add compressed exports, backups, or payload handling. Given zero adoption in the wild, we recommend using it narrowly and pinning the version, with a fallback of writing the few fixtures ourselves if maintenance lapses.
To engineering: Narrow-scope test utility for the compress interface family — fixtures and assertions for round-trip, edge-case, and corrupt-input behavior. Adopt only as a require-dev dependency in adapter-level packages; do not introduce it into application test suites. Budget one engineer-hour to evaluate against inlining the fixtures, since the surface area is small enough that owning it may be cheaper than tracking a single-maintainer dependency. Pin the version, exclude it from production autoload, and re-evaluate at each major release.
How can I help you explore Laravel packages today?