Skip to content

Learn to write
Elegant PHP
Built for Makers

Welcome to the Makers' Guide to Leaf—your fast track to building with Leaf. This guide walks you through everything you need to start shipping quickly and efficiently, from hello world to deploying your app.

Choose your path

No application is the same, why should your framework be?

Michael Darko
Creator of Leaf PHP

This is something we live and die by at Leaf. We believe that every application is unique and should be treated as such. That's why we've built Leaf to be as flexible as possible, allowing you to build your applications the way you want to. At the end of the day, we're here to help you build your applications, not to dictate how you should build them.

With that in mind, we've created a few paths to help you get started with Leaf. Whether you're building a simple app/API, a full-fledged web application, or a massive API, we've got you covered. Choose your path below to get started.

Basic Leaf App

Use Leaf as a micro-framework to build simple apps and APIs.

Start building

Leaf MVC App

Add an MVC structure on top of Leaf for more complex apps.

Start building

MVC for APIs

Build APIs with a structured approach for better organization.

Start building

Deploy your app

After building your app, you'll want to deploy it to the web so that others can access it. We've got you covered with our deployment guides that walk you through deploying your app to various platforms.

Contributing

If you've written a tutorial that you think would be a great addition to our Learn section, feel free to submit a PR to our GitHub repository with your tutorial. For our readers' benefit, be sure to follow the contribution guide when submitting your tutorial. Thank you for your contribution!

Released under the MIT License.