Leaf gives you and your coding agent everything a real app needs: sign-in, payments, email and a database, ready when you need them. When it's built, it runs on hosting that costs a few dollars a month.
The files land where they belong and still read cleanly next month.
Every module has the same shape, so the whole app stays small enough to hold in your head, and in a context window.
Login, sign-up, roles and permissions. Pick sessions or tokens and the code barely changes.
Fluent queries that read like sentences. MySQL, Postgres, SQLite and more.
One-off charges and subscriptions, with the checkout wired up for you.
Send receipts, resize images or sync data without making anyone wait.
Check what comes in with rules that read like plain English, and send back errors people can act on.
Every project keeps a short map your agent reads first, so its code lands where you'd have put it.
A big framework costs you twice: in the agent credits it takes to work inside it, and in the server it needs to run. Leaf keeps both small.
Every project ships the rules and context your coding agent needs, so it reaches for Leaf's sign-in, database and mail modules instead of rewriting them, and spends your credits on your product.
Upload your app to any host that runs PHP 8.2. No SSH, no Composer on the server, and SQLite by default, so there is no database server to set up or pay for.
The same app, built by an agent on Leaf and on Laravel, on the same server. Leaf used less memory, answered more requests and uploaded half the files.
Measured December 2026: Leaf 5 and Laravel 13 running the same agent-built store API on Apache with PHP-FPM, 4 workers and a 128 MB limit. Lower is better.
25+ first-party modules plug in the day your product asks for them.
All 25+ modulesWhat the agent touches
Sign-in, a database and CORS are set up before you open your editor. No config files to learn first.
React, Vue, Svelte or Blade. Your agent reads the same map either way.
Leaf stays small, so it never pushes you toward the same app twice. Here are some of the products people run on it, plus templates you can start from today.
Releases drop in the Discord first. Come show what you're shipping.
“This is my first experience with PHP, I tried Leaf 5 out in the alpha with Claude code, and was genuinely impressed. I got my entire school project complete in a matter of minutes, especially the billing part.”
Selasi Bansa@sdotb · Leaf 5 alpha“Building with Leaf has been the most simple and straightforward approach to getting an app production ready”
“Leaf has been a great choice for us as it allows us to build our APIs really fast, giving us time to focus on what we want: the design and experience of our projects.”
Rare Goods Only@raregoodsonly“It gives the essentials to start building right away, with the flexibility to add exactly the features you need, precisely when you need them.”
“I just don't "get" the major frameworks and to me I want something simple which I can add to if needed and now I come across Leaf. Wow.”
“Clean, well organized and the MVC versión is just great!!!”
The toolchain
Start in minutes, build it with your agent or by hand, and put it online on hosting you can afford.