How bhagirath-chauhan/mvc works
Project type and purpose
• This is a monolithic, server-rendered PHP web application following the MVC (Model-View-Controller) pattern.
• The README (“# mvc”) and the file tree (“app/controllers”, “app/models”, “app/views”) confirm it’s a classic PHP MVC project that serves HTML views, handles user authentication, and persists data in a relational database.
File structure
Top-level directories and their roles:
• index.php (front controller / single entry point)
• app/
• controllers/: HTTP request handlers (AuthController, HomeController, UserController)
• models/: domain objects and data mappers (User, Message, Country)
• views/: PHP templates, organized by feature and layouts
• core/: framework core classes (Config, Controller base class, Database abstraction)
• common/: shared utilities (Utility.php)
• public/: static assets (CSS, JavaScript)
• db/: SQL scripts (mvc.sql)
• config.php: application configuration
README for additional insights
• The project is minimal; the key insight is just that it implements MVC.