PhpStorm
 
Get PhpStorm

Directory structure

Last modified: 17 December 2024

PhpStorm can distinguish between different folder types in a project directory structure. The folder type determines how PhpStorm treats the folder contents—for example, Sources folders are used as roots for namespace auto-completion, while Excluded folders are excluded from indexing.

The IDE marks folders in PHP projects with types automatically based on the contents of the composer.json file. You can also mark them manually in Settings (CtrlAlt0S) | Directories or from the Project tool window.