flormich/skeleton-mvc

There is no license information available for the latest version (v1.1.0) of this package.

v1.1.0 2018-09-14 12:54 UTC

This package is not auto-updated.

Last update: 2025-06-18 17:39:50 UTC


README

Codacy Badge

Start from PHP MVC skeleton

📃 Description

  • Front Controller
  • Configuration routes
  • PDO
  • Template

đŸ’ģ Installation

Clone this reposoitory

git clone  https://github.com/flormich/skeleton-mvc

Move to the demo-MVC folder

cd skeleton-MVC

Generate the autoloading

composer dump-autoload

Create your routes in config/route.json like in exemple :

{
    "index": {
        "method" : "get",
        "path" : "/Demo-MVC/public/",
        "controller" : "AppController",
        "action" : "show"  
    }
}

Change the database in config/database.json like in exemple :

{
    "username" :  "root",
    "database" : "database_name",
    "host" : "localhost",
    "password" : "password"
}

âœ¨ī¸ Usage

Add routes, create controllers

đŸ“ē Demo

logo

➕ Todo

  • Catch exception
  • Create error page
  • Create Flashbag

ÂŠī¸ Copyright

This project is under the MIT LICENSE