Skip to content

Elegant PHP
Built for Makers

Go from idea to launch with clean and elegant PHP that grows with you. With a zero-config setup and an ecosystem of powerful tools, Leaf helps you build and ship scalable apps—fast

  $ composer global require leafs/cli -W
  $ leaf create app-name
  $ cd app
                

The framework for people who just want to ship 🚀

Leaf is built for makers who move fast. With no config and effortless deployment, you can run Leaf anywhere PHP is available—no questions asked. Shared hosting? Just drag and drop. Cloud or VPS? Seamless. Get from idea to production in no time.

Everything you need to build and grow a SaaS

Leaf provides lightweight, customizable tools designed to help you to build, ship, and scale—without unnecessary complexity. Now, you can quickly go from idea to profitable product.

Authentication

Sign users in or create accounts using Leaf's Auth module:

php
auth()->login([...]);

Leaf will automatically handle the authentication process, including hashing passwords and storing user + sessions and JWTs. You can also protect your routes with Leaf's middleware.

php
app()->get('/login', ['middleware' => 'auth.required', function () {
  // this route is only accessible to logged in users
}]);

From account verification to roles and permissions, Leaf Auth gives you a ton of features right out of the box. Check out the authentication documentation.

Worried about frontend lock-in? Don't be.

If you're tired of frameworks that dictate your frontend choices, Leaf is different. Use any frontend framework you prefer — Vue, React, Svelte, Blade or bring your own view engine.

Learn more
app()->get('/menu/items', function() {
  return response()->inertia('menu', [
    'items' => db()->select('menu_items')->all()
  ]);
});
🍔

Veggie Loaded Burger

Vegan • 4 stars

$8.99
🍗

Southern Fried Chicken

Spicy • 5 stars

$9.49
🥩

Healthy Beef Burger

Low-carb • 4 stars

$8.99
React
Vue
Svelte
Blade

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 support goes 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 current 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

Latest from Our Blog

At Leaf, we're focused on making PHP development as simple and elegant as possible. Our team is constantly improving the framework and its ecosystem—tune in as we share what's new and what's coming next.

Build Your Next SaaS with PHP — In Hours, Not Days

We've been working on Leaf PHP, and building it into the perfect tool for makers and solo builders.If you’re looking to build fast and ship faster, Leaf might be the fastest way to launch your next SaaS — all with plain, elegant PHP that scales with you.

Read More

Leaf 4.0 is finally here! Build 10x Faster and Lighter

Today, we are excited to announce the release of Leaf 4 (🌷 Snowdrop) and Leaf MVC 4 (✈️ Hughes H-4 Hercules)! This marks a new chapter in the evolution of Leaf, making PHP development faster, simpler, and more powerful than ever before.

Read More

Invite us to speak at your next event

Want a Leaf core team member to speak at your next event? Invite us to create a memorable and engaging experience for your attendees.

Wall of Fame

These are the heroes who have made Leaf what it is today. We are grateful for their contributions and support ❤️

Deploys by Netlify