ihsw/toxiproxy-php-client
A PHP client for Toxiproxy, the TCP proxy for simulating network conditions in tests. Create and manage proxies and toxics to inject latency, bandwidth limits, timeouts, and connection failures from PHP applications and test suites.
Adopt when:
Look elsewhere when:
For executives: Reliability incidents are expensive; most failures are network-related and rarely exercised in tests. This package lets us deliberately simulate network slowdowns and outages in our automated tests, so resilience features (retries, timeouts, fallbacks) are proven before release rather than discovered during an incident. It's a small, MIT-licensed client over Shopify's well-known Toxiproxy, so cost and lock-in are minimal.
For engineering: Adopt ihsw/toxiproxy-php-client to wrap the Toxiproxy HTTP API in our PHPUnit test suite. It gives us readable create/enable/disable/delete proxy calls and toxic injection (latency, bandwidth, timeout, slicer), with clean teardown. Use it to assert our handling of degraded dependencies — timeouts, retries, partial failures — as part of CI. Scope it to integration/contract tests and critical paths; document container setup and test isolation conventions, and pin the version given the small maintainer base. This is a low-risk, high-signal addition to our quality tooling that makes resilience a testable requirement instead of an aspiration.
How can I help you explore Laravel packages today?