A very simple MVC Framework built for Web Programming class (2014). Written in PHP. Inspired by Laravel framework.
Here is the structure of the application:
core
Auth.php
Model.php
Route.php
ViewHelper.php
Controller.php
RouteHelper.php
Validation.php
View.php
app
views
configs
controllers
models
bootstrap.php
routes.php
assets
index.php
Follow this steps to use the application
- Clone this repository
- Run
migrate.sql
commands in your PostgreSQL database - Configure the
database.php
based on your database settings - You can access the application in
path-to-application/
. You will be presented with a simple example login app that utilizes this framework. - Your application folder is located in
app
. You can add newmodels
,controllers
,views
, and configureroutes.php
to suit your need
This framework is highly untested. Only use this framework as an educational purpose only.