Skip to content

πŸƒ Windfall

Choose a tag to compare

@mychidarko mychidarko released this 13 Aug 20:16
· 2 commits to v5.x since this release

v5.0 - 13 Aug 2026

Added

  • This package is now the home of [Leaf Crash](https://leafphp.dev/docs/routing/error-handling), Leaf's error engine: every failure becomes a structured Report with frames, request context, app context and the signed-in user
  • Crash reports carry the journey to the failure: breadcrumbs from your logs, views, queries and queued jobs, plus dump()-style peeks and performance timings
  • Crashes are fingerprinted across occurrences, so editing unrelated code doesn't split one issue into many, and occurrence counts survive with an attached store
  • Sensitive values are redacted from reports before anything renders or ships
  • The debug crash page renders in Leaf's design language, and production gets a clean branded page that hides internals from users, never from you
  • Added Leaf\Crash\Pages: the framework's 404, maintenance, CSRF and generic error pages, rendered in the same design with dark mode support
  • Added Report::toText() for consoles and logs β€” Leaf MVC's command errors render through it
  • Custom error handlers plug in through renderWith(), receiving the full Report
  • Test suite runs through Alchemy

Changed

  • The whoops-based library is removed. Leaf\Exception\Run, its handlers, and Leaf\Exception\General are gone β€” Crash handles every error surface. If you called Leaf\Exception\General for status pages, Leaf\Crash\Pages has the same methods (default404, defaultDown, csrf, error)
  • Dropped the psr/log dependency β€” the package now has zero runtime dependencies
  • Exception now requires PHP 8.2+ and jumps from v3.7 to v5.0 to version alongside the rest of Leaf 5