A basic MVC Framework Folder Structure

This is a typical structure of a basic PHP framework based on MVC design:
mvc structure

  • app folder contains the application related files and sub-folders, such as controllers, models and views.
  • core folder contains the core files of the framework itself.
  • log folder contains all log files.
  • public folder contains all publicly accessible files. This is the only folder accessible to the web. The root of the web server should poit to this folder. This folder will contain all static files, such as CSS, images, JavaScript files.
  • vendor folder contains all third-party code / frameworks