Menu

Getting Started
Getting up and running with Leaf PHP

Preface

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.

Setup

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 getcomposer.org

After installing composer,

composer require leafs/leaf ^1.4.0

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 git@github.com:leafsphp/leaf-starter.git cd leaf-starter php -S localhost:8000

Next Steps

Re-routing to index.php
Simple Routing
Request
Response