leaf v5 · lite
One file. Real product.
Grow when you're ready 🌱
A single index.php is a perfectly good way to build. Plenty of production apps never need more, and this one is already running.
# index.php · the whole app
app()->get('/', fn () => response()->json([
'message' => 'shipped',
]));
app()->run(); $ leaf serve
→ Server running at http://127.0.0.1:5500
app()->get('/', fn () => response()->json([
'message' => 'shipped',
]));
app()->run(); $ leaf serve
→ Server running at http://127.0.0.1:5500
leaf install auth db mail when you need more
leaf up for full MVC, same code
leaf context for your AI