yiisoft/error-handler
Yii error handler for PHP applications that converts errors and exceptions into PSR-7 responses. It supports debug and production modes, HTML and JSON output, logging, and PSR-15 middleware for consistent error handling.
yiisoft/error-handler is a framework-independent Yii3-era error handler, likely centered on PSR-7/PSR-15 middleware and renderers. Laravel uses Illuminate\Foundation\Exceptions\Handler plus its own middleware pipeline, not PSR-15. Treat this as a non-native component, not a Laravel error-handler replacement. Better fit is standalone PHP services, CLI entrypoints, queue workers, or non-Laravel services in a mixed PHP estate.Throwable, invokes the package’s handler/renderer, maps output into Laravel or CLI conventions, and falls back to the native handler on any adapter failure. For HTTP, run shadow-mode comparison against Laravel’s native rendering before any canary. Only migrate a non-critical route if the package demonstrably improves error contracts, redaction, or cross-service consistency.symfony/psr-http-message-bridge and PSR-17 factories; confirm maintenance and version alignment. License is compatible. Because the repository is unknown, require source provenance, dependency audit, and security scan before adding to a production lockfile. Pin versions and avoid broad transitive dependency exposure.How can I help you explore Laravel packages today?