An open API service indexing awesome lists of open source software.

https://github.com/imranhsayed/mvc-php

⚡ A demo to create MVC in php
https://github.com/imranhsayed/mvc-php

Last synced: 9 months ago
JSON representation

⚡ A demo to create MVC in php

Awesome Lists containing this project

README

          

# ⚡ Model View Controller in PHP

A demo for MVC in php.

# What is MVC?

For better readability, rather than mixing our php and html, we can have our project organized in a new software design pattern called MVC( Model View Controller )
MVC divides the related program logic into three interconnected elements:

1. **Model**: ( The User interface ) interacts with the database. It receives, stores and retrieves data for the user.
2. **View**: ( The business logic layer ) displays information to the user and integrates data from the controller.
3. **Controller**: ( The application logic layer ) sends and receives data from the model and passes to the view.

![](mvc.png)