Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
/ leafAPI Public archive

Leaf API is a lightweight PHP MVC framework for rapid API development.

Notifications You must be signed in to change notification settings

leafsphp/leafAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



Leaf API v2





Leaf API

Leaf API is a minimal MVC wrapper built on top of Leaf PHP which allows you to build APIs with Leaf, faster and simpler than ever before.

v2 of leaf API packs in a ton of new features with enhanced usability for existing features. It also has better binding with other Leaf libraries as well as external libraries. Also since Leaf doesn't enforce particular systems like Facades in laravel, you can port in any valid PHP library and it should work fine.

Installation

It's recommended that you use Composer to install Leaf.

composer create-project leafs/api <project-name>

This will start a new Leaf api project.

Basic Info

C:.
├───App
│   ├───Console
│   ├───Controllers
│   ├───Database
│   │   ├───Factories
│   │   ├───Migrations
│   │   └───Seeds
│   ├───Helpers
│   ├───Models
│   ├───Routes
│   └───Views
├───Config
│   └───Command
├───Lib
├───public
├───storage
│   ├───app
│   │   └───public
│   ├───framework
│   │   └───views
│   └───logs
└───vendor

This directory structure is a blend of Ruby on Rails and Laravel

To run your Leaf api application, use

php leaf serve

Learning LeafAPI

LeafAPI has a very easy to understand documentation which contains information on all operations in LeafAPI.

Since LeafAPI runs on Leaf, you can check out the Leaf PHP Framework documentation here.

License

The LeafAPI framework is open-source software licensed under the MIT license.

View LeafAPI's docs here

View Leaf's docs here

About

Leaf API is a lightweight PHP MVC framework for rapid API development.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 5

Languages