An MVC & AJAX based PHP Framework & Demo CRUD app made from scratch, uses no frameworks.(Work-in-Progress)
This is a PHP Framework made by Shawn D’silva to learn MVC Architecture, SQL based CRUD and AJAX from scratch using Linux, Apache, MySQL and PHP , No JavaScript or PHP Frameworks used and neither are any PHP packages or libraries, The Front-End for the demo app is made with with custom CSS & JQuery.
This Project supports Docker and is deployed in Docker containers, The Docker deployment consists of a MySQL container with an Apache2 server + PHP7.2 apache mod, which runs the web app.
docker
and docker-compose
for this.docker-compose up
localhost:5003
by default.index.php
which lives in the public
folder, which also contains .css
and .js
in their respective foldersapp
which contains controllers
, views
, models
and routes
.core
which contains the database
,sessions
,router
,middlewares
,utils
and base controller
and models
logiccontroller
and models
in core
which encapsulte the parameter or middleware data for controllers from the routes or expose the database functions and Query Builder for the models.js
files./postlist
link to single postcreated_at
field translated to human readable field in PHP itself, instead of using JS.core
app
routes
folder inside ‘app
folderroutes
folder must contain routes grouped by their function in a single filebaseurl
setupcore
Shawn D’silva |
---|