Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Latest commit

 

History

History

leaf-mvc

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

leafMVC

Leaf MVC v3 (𝄫 Beethoven) has just been released. "𝄫 Beethoven" builds on the changes from Leaf PHP and takes development to a whole new level of ease. Read the docs

Leaf MVC is a lightweight PHP MVC framework that allows you to quickly build powerful web apps and APIs. LeafMVC serves as minimal MVC wrapper around Leaf PHP Framework which allows you to use Leaf in an MVC environment, as such you're still using Leaf.

Installation

Composer

You can quickly create a Leaf MVC project with composer.

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

That's it! This will create a new Leaf MVC project named <project-name>.

Github

You can download the source files from github and extract it to get the leafMVC files. All that's left is to install the dependencies.

composer install

After this has completed it's installation, you just need to generate your application env file. You can copy and rename your .env.example file to .env, but aloe cli provides a way easier approach.

php leaf env:generate

That's all!

Directory Structure

In your project directory, you should have a structure like this.

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

In the project root, you can open up your console tool and type in

php leaf serve

This will start the php web server and load your project at http://localhost:5500 by default.

Next Steps

Built with ❤ by Mychi Darko