my-php-mvc-project/
├── config/
│ ├── config.php This folder contains the configuration files for the application, such as database connection details.
│ ├── database.php
├── app/ This folder contains the core application files, such as the controllers, models, and views.
│ ├── controllers/ This folder contains the controllers that handle the logic for the different pages of the website.
│ │ ├── HomeController.php
│ │ ├── UserController.php
│ ├── models/ This folder contains the model classes that interact with the database.
│ │ ├── User.php
│ ├── views/
│ │ ├── home/
│ │ │ ├── index.php
│ │ ├── auth/
│ │ │ ├── login.php
│ │ │ ├── register.php
│ │ ├── users/
│ │ │ ├── index.php
│ │ │ ├── edit.php
│ │ │ ├── add.php
├── public/ This folder contains the publicly accessible files, such as CSS, JavaScript, and images.
│ ├── css/
│ │ ├── style.css
│ ├── img/
│ ├── js/
│ │ ├── script.js
│ ├── index.php
├── .htaccess This file is used for URL rewriting and redirecting all incoming requests to the front controller public/index.php.