# Leaf 5

A new major version of Leaf, a PHP framework for makers, with a new compiled routing engine.

Routes can now have optional parameters and inline constraints, and an exact route always wins over a dynamic one. Leaf Crash replaces whoops for errors. Leaf 5 needs PHP 8.2 or later.

- Made by: [Leaf PHP](https://github.com/leafsphp)
- Shipped: 15/08/2026
- Date from: [release](https://github.com/leafsphp/leaf/releases/tag/v5.0)
- Source: [github.com/leafsphp/leaf](https://github.com/leafsphp/leaf)
- Docs: [leafphp.dev/docs](https://leafphp.dev/docs/)
- Install: `composer require leafs/leaf`
- Licence: MIT
- Stack: plain PHP
- Checked: 21/10/2026
- Added: 21/10/2026

See more at [phplives.dev](https://phplives.dev)
