Skip to content

Elegant PHP
for Modern Developers

Leaf is a lightweight and user-friendly framework designed for quick and efficient development. It features a zero-config setup and an ecosystem of tools, making it ideal for building scalable apps with ease.

Get Started

Powerful tooling that grows with you

Leaf offers lightweight, customizable tools, allowing you to tailor your application with only the necessary features. It supports a vast ecosystem of modules and millions of PHP packages, eliminating the need to reinvent the wheel 🚀

🚦

Powerful Routing

Leaf comes with a super lightweight but powerful router that handles all the heavy lifting for you.

🔐

Dead-simple Authentication

Create full-fledged authentication systems for your API or with a full UI in seconds with Leaf Auth.

💾

Powerful DB Layer

Leaf provides a highly performant database layer for all your queries with support for ORMs like Eloquent.

🍱

Multiple Flavours

No application is the same, why should every framework be the same? Customize your Leaf installation with our powerful CLI.

📦

Useful App Utils

From data fetching to dates, validation, caching, mailing, logging, everyday functions and all those goodies, Leaf has got you covered.

🔍

Graceful Erroring

There are no “Oh no!” moments with Leaf. We've got all the tools you need to fail-in-style: from devtools to debug modes and custom errors.

🎨

Dynamic View Layer

Leaf supports multiple template engines and even frameworks like React, Vue and Svelte.

🔧

Friendly system utilities

Access/modify system info securely without dealing with the complex functions taken directly from C.

30+ modules

Full list of Leaf modules

📡

Simplified Http API

Leaf provides user-friendly APIs for handling requests, CORS, sessions, cookies and everything in-between.

🏎️

Swoole Support

Leaf + Swoole = Rocket + Gravity assist. Leaf offers a clean way to use Swoole with the same API.

From install to deploy in minutes 🚀

Leaf prides itself on it’s ease of use, and especially its ease of deployment. Leaf will happily run anywhere PHP is available without asking any questions. Shared hosting? No problem, just drag and drop!

Try it out️

We’ve said enough about Leaf and what it can do. Why don’t you try changing the code below and see what you can create. If you want to follow a guided tutorial in our sandbox, you can check out the interactive tutorial 🏄‍♀

Go to tutorial

Leaf is all of us

Leaf is fully community backed. Your donations go a long way to help us keep Leaf running and keep up with the demand associated with the growth of our tools. Here are our top sponsors ❤️

Dig into our vibrant community with us.

Our first community meet up was in 2023 which we held together with SeevCash. Since then our community has gotten bigger, growing together with Leaf and all the tools in the ecosystem. Join our young but vibrant community and the Leaf team as we discuss our insights from the past year and what’s to come in the next couple of years 🚀

Join the community

Released under the MIT License.