What is the recommended directory structure for a website with PHP components?

When creating a website with PHP components, it is recommended to follow a structured directory layout to keep your code organized and maintainable. One common approach is to separate your PHP files into different directories based on their functionality, such as separating controllers, models, views, and assets like CSS and JavaScript files. This makes it easier to locate and manage your code as your project grows.

- project_root/
  - assets/
    - css/
    - js/
  - controllers/
  - models/
  - views/
    - partials/
    - layouts/