Getting Started
Getting up and running with Leaf PHP


What is Leaf

Basically, Leaf is a PHP starter kit that helps you quickly write simple yet powerful web applications and APIs without any framework..

Leaf gives you a simple but very efficient structure for what ever kind of app you wish to build.

Leaf also includes a bunch of handy functions that help you achieve a whole lot simmpler and faster.

Simply install leaf, and you're good to go.


If you just need the files you can download them as a zip from GitHub.

Download Zip

Installing Leaf PHP

Install with composer

If you don't already have composer, you can get it at the download page on

After installing composer,

composer require leafs/leaf

Use the starter template

This method uses git. If you don't already have git, you can get it at the download page

git clone cd leaf-starter php -S localhost:8000

Next Steps

Re-routing to index.php
Simple Routing