franzl/whoops-middleware
PSR-15 middleware that drops the Whoops error handler into any middleware pipeline, turning uncaught exceptions into rich, stack-trace-friendly debug pages during development while staying out of the way in production.
middleware/utils. That lowers the integration cost of running one consistent local debugging experience across Slim, Mezzio, Laminas, and bridged Symfony services.Consider it when:
middleware/utils avoids pinning a specific implementation, which reduces version-conflict risk in monorepos and multi-service repos.Look elsewhere when:
For executives: This is a small, free (MIT) developer-tooling dependency that improves local debugging. The 2.0.0 release shows the project is still receiving maintenance—PHP 8 support and a dependency cleanup—so the "abandoned utility" risk is lower than it was. It carries no production risk if scoped correctly to development environments, and it costs essentially nothing to trial. Treat it as a convenience, not a commitment: no SLA, no vendor.
For engineering: It's a thin PSR-15 middleware that wires Whoops into your request pipeline. 2.0.0 is a breaking change: minimum PHP moves to 7.2 with PHP 8 support added, and the adapter now uses middleware/utils to detect an available PSR-7 implementation rather than forcing Laminas—so check which PSR-7 package your services actually ship and confirm the resulting version constraints resolve. Upside is fewer dependency conflicts and better consistency across PSR-15 services. Still plan to pin a version, gate it behind environment checks so it can never reach production, and document that requirement. If you're Laravel-centric, skip it; your framework already covers this ground. Otherwise the integration is low-effort with a small blast radius—ideal for a spike or a one-sprint trial, now with a cleaner upgrade path than 1.x offered.
How can I help you explore Laravel packages today?