Urgent.News

What's breaking now, across thousands of outlets.

More in Tech

Introduction

Over the time, PHP and its various tools have become more advanced and easier to use. As a result, you can create your own framework even using core PHP.

Part 01 - Directory Structure of the Application

Source Code Files of this Chapter project-root/ │── public/ │ └── app/ See the final project directory structure project-root ├── app/ │ ├── Controllers/ │ │ ├── Api/ │ │ │ └── UserController.php │ │…

  • Project-root folder contains subdirectories: public, app, config, database, vendor
  • App directory stores project-related classes following MVC pattern and PSR-4
  • Public directory holds default accessible file, config contains app.php, database.php, mail.php

More from Saturday 26 September →