How mohamedayman87/mvc_crud works
This is a PHP product-catalog CRUD application built around a small MVC-style framework. A browser request enters through the public front controller, whose App router dispatches a controller action; product actions read or modify product records and render catalog or form pages. The internal layers are the product model, shared database connection, and bundled MySQLi wrapper. The README is empty, so capability coverage comes from the available controller and view excerpts; the database and template paths are only partially sampled.
Main entry points: View.php View Loader · MysqliDb.php MySQLi Wrapper · App.php App Router · ProductController.php Product Actions
Components 16
Request Runtime
- Public Entry
public/index.php - Bootstrap
public/autoload.php - App Router
app/Core/App.php
Product Catalog
- Home Actions
app/Controllers/HomeController.php - Product Actions
app/Controllers/ProductController.php
Data Access
- Product Model
app/Models/product.php - Model Base
app/Core/Model.php - MySQLi Wrapper
app/Libs/DB/MysqliDb.php - Object Mapper
app/Libs/DB/dbObject.php
Presentation
- View Loader
app/Core/View.php - Catalog Page
app/Views/products/index.php - Product Forms
app/Views/products - Home Page
app/Views/home.php - Shared Layout
app/Views/inc
Other components
- Browser
- MySQL Database
Connections 17
- Browser → Public Entry: requests
- Public Entry → Bootstrap: requires
public/index.php - Bootstrap → App Router: starts
public/autoload.php - App Router → Home Actions: dispatches
app/Core/App.php - App Router → Product Actions: dispatches
- Home Actions → View Loader: loads view
app/Controllers/HomeController.php - Product Actions → Product Model: uses
app/Controllers/ProductController.php - Product Actions → View Loader: loads view
app/Controllers/ProductController.php - Product Model → Model Base: extends
app/Models/product.php - Model Base → MySQLi Wrapper: creates connection
app/Core/Model.php - Product Model → MySQLi Wrapper: queries products
app/Models/product.php - MySQLi Wrapper → MySQL Database: connects
app/Libs/DB/MysqliDb.php - Object Mapper → MySQLi Wrapper: delegates queries
app/Libs/DB/dbObject.php - View Loader → Catalog Page: renders
- View Loader → Product Forms: renders
- View Loader → Home Page: renders
- Catalog Page → Shared Layout: includes layout
app/Views/products/index.php