Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Toxiproxy Php Client Laravel Package

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.

Deep Wiki
Context7

Product Decisions This Supports

  • Reliability and resilience roadmap: Use this package to make network-failure testing a first-class part of the test suite, enabling the team to validate how the product behaves under latency, bandwidth throttling, and connection timeouts rather than only in the happy path. This supports deciding whether to invest in retries, circuit breakers, timeouts, and graceful degradation.
  • SLO / error-budget validation: Chaos tests with injected latency and timeouts give concrete evidence for setting and defending SLAs/SLOs (e.g., "p95 tolerance under 200ms added latency"). PMs can use these results to justify or defer reliability investments.
  • Build vs buy: For a PHP/Laravel stack, this is a thin client over Shopify's Toxiproxy. The heavy lifting (proxy) is a mature OSS dependency; adoption is cheap, so the "build vs buy" question becomes a small internal wrapper decision rather than a strategic one.
  • Feature acceptance criteria: Teams can add "survives injected 500ms latency to the payment provider" as a testable acceptance criterion, turning vague resilience goals into CI-checkable requirements.
  • Prioritization input: Failure-injection results surface which integrations (queues, third-party APIs, DB connections) are fragile, informing backlog priorities and incident postmortems.
  • Use cases: integration test hardening, pre-release resilience checks, chaos engineering for critical paths, and demonstrating resilience to stakeholders/auditors.

When to Consider This Package

Adopt when:

  • You run a PHP/Laravel codebase with PHPUnit/Pest-style integration tests and want to verify behavior under degraded network conditions.
  • Your product depends on external TCP services (databases, caches, message brokers, third-party APIs) where latency and connection failures are realistic risks.
  • You want low-ceremony chaos testing — Toxiproxy runs as a local Docker container, and this client keeps the test-side API simple and readable.
  • You need to validate retries, timeouts, backoff, and circuit-breaker logic as part of CI rather than manual QA.
  • You value a small, MIT-licensed dependency with recent releases (2025) and a clear scope.

Look elsewhere when:

  • You need non-TCP or HTTP-level chaos (Toxiproxy operates at TCP; header/HTTP fault injection needs other tools).
  • Your stack is not PHP — use the official Go client or clients in other languages.
  • You need production/production-adjacent chaos engineering with orchestration, blast-radius control, and experiment tracking (tools like Gremlin, Chaos Mesh, AWS FIS are better fits); this package is test-time oriented.
  • Your team has no existing integration-test infrastructure — adopting chaos tooling before basic test coverage is premature.
  • The 31-star, single-maintainer risk is unacceptable; in that case, pin/vendor the client or treat the Toxiproxy HTTP API as a first-class dependency.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core