Skip to content
 
 

Repository files navigation



Leaf API : re





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.

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
│       ├───assets
│       │   ├───css
│       │   ├───images
│       │   ├───js
│       │   └───sass
│       ├───components
│       └───pages
│           └───errors
├───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 LeafMVC

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

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

License

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

View LeafMVC's docs here

View Leaf's docs here

About

A minimal MVC wrapper around Leaf PHP, made with API development in mind

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages