hesamrad/laravel-api-debugger
A Laravel package for debugging API requests and responses. Capture outgoing and incoming calls, inspect payloads, headers, and status codes, and trace failures quickly—so you can see exactly what your app sends and receives without extra tooling. Great for local development and staging.
Architecture fit. The package targets a narrow, well-understood seam in the Laravel request lifecycle: the HTTP middleware/kernel pipeline around JSON API routes. That is the right architectural insertion point for an API debugger — it is opt-in per route group, requires no changes to controllers or form requests, and does not couple to our domain code. For a Laravel API-first service, this is a low-ceremony fit: composer require --dev, publish config, attach middleware to a debug route group. The architectural risk is therefore not "will it fit" but "how much surface area does it add to the request path" and "what does it persist."
Integration feasibility. High on paper, with three caveats a TPM should price in. First, adoption signal is weak: 20 stars and zero dependents means we will be one of the first production-adjacent consumers, so we should expect to be the ones finding edge cases. Second, the package is single-maintainer; our feasibility case must assume we may need to fork or vendor it. Third, and most important, debug middleware that captures request/response bodies is a data-handling decision, not just a developer convenience — feasibility is gated on redaction and environment gating, not on installation effort. Installation is likely an afternoon; the review and hardening work is the real estimate.
Technical risk.
Key questions.
Stack fit. Good for Laravel 10/11/12 API services, particularly ones with noisy JSON contracts (mobile clients, partner integrations) where "what did the server actually return" is a recurring support question. Poor fit for apps already served by Telescope, Ray, or structured request logging with a mature observability backend — we would be adding a second, narrower debug channel and a second place sensitive data can leak. The decision hinges on whether our current debugging story has a real gap for API payloads specifically.
Migration path. Treat this as greenfield dev tooling, not a migration. Recommended path: install as a --dev dependency, publish config, register the middleware only in a dedicated local/staging-debug middleware group, and keep it out of config/app.php's global stack entirely. No changes to existing logging or Telescope; run them side by side for a trial window so we can compare fidelity before deciding whether it replaces anything.
Compatibility. Verify against our actual matrix before committing: our Laravel major, PHP minor, and container runtime. If we run Octane, add a specific soak test. If we run multi-tenant, confirm captured data is tagged or scoped by tenant so a developer cannot see another tenant's payloads in shared staging.
Sequencing.
Authorization, cookies, password/token keys; confirm production cannot enable it.composer.lock and add a renovate/dependabot watch entry.Maintenance. Low day-to-day, but non-zero: a dev-only dependency still participates in composer update and can block a Laravel major upgrade if it pins tightly. Budget a small annual cost for version bumps and one compatibility patch per framework major. Because there are zero dependents, we should assume we are the de facto QA for our own version combination and be prepared to fork (small codebase, likely feasible in days).
Support. Single maintainer, small audience — do not expect vendor-style SLAs. Internally, support burden is "one engineer who knows it" plus documentation. If adopted, name an owner; if it becomes load-bearing for debugging workflows and the owner leaves, the team loses the tooling knowledge, not just the package.
Scaling. Two axes. First, request-path cost: overhead scales with payload size and request volume, so it must never be enabled in a load-tested or production environment — gate it at the config level, not by discipline. Second, storage: captured payloads accumulate; without retention limits, a shared staging store becomes both a disk problem and a growing PII liability. Require a retention/TTL answer before pilot, and cap captured body size.
Failure modes.
Ramp-up. Very low — a competent Laravel engineer is productive in under an hour, and the concepts (middleware, config publish) are already familiar. The real ramp-up cost is organizational: teaching the team what the tool does not safely capture, and enforcing the "never enable in prod" norm. That is a documentation and code-review habit, not training.
TPM recommendation. Worth a bounded evaluation, not a platform commitment. The value is real but narrow, the technical risk is concentrated in data handling rather than integration, and the adoption signal (20 stars, 0 dependents) means we carry the compatibility risk ourselves. Gate the go decision on the security review and the overhead measurement; if either is unsatisfying, the correct outcome is to keep the tool out and invest the same effort in structured API request logging we control.
How can I help you explore Laravel packages today?