yiisoft/friendly-exception
User-friendly exception handling for PHP apps: convert throwables into readable messages, safe debug views, and structured data for logs/HTTP responses. Helps present errors clearly in production while keeping rich context for developers.
Developer Experience (DX) Initiatives:
Roadmap Priorities:
Build vs. Buy:
Whoops or Symfony Debug if they lack modern features (e.g., source context, prod safety).Use Cases:
?debug=1 for support teams).symfony/debug or symfony/error-handler instead.Whoops + custom templates)."This package turns cryptic PHP errors into clear, actionable debug pages—saving devs hours weekly. For $0 cost, we get:
Ask: "Should we prioritize this for the next sprint to cut debugging time by 30%?"
"yiisoft/friendly-exception solves three key pain points:
Dev Experience:
Uncaught Exception dumps with structured, collapsible error pages.Production Safety:
APP_KEY, DB credentials).Flexibility:
Integration Effort: 1–2 hours for basic setup (middleware + config). Example:
// In Laravel: Replace App\Exceptions\Handler
use Yiisoft\FriendlyException\Renderer\Renderer;
public function render($request, Throwable $exception) {
return (new Renderer())->render($exception);
}
Trade-offs:
Recommendation: Pilot in one service (e.g., a high-error-rate API) to measure dev time savings."*
How can I help you explore Laravel packages today?