PhpStorm 2024.3 Help

Configure include paths

Include paths are used for holding libraries, that is, third-party code that is used for completion and reference resolution in some functions/methods that use file paths as arguments, for example, require() or include().

Note that the files added via include paths are not meant to be edited within the scope of your project. If you have the existing code that you need to access and modify from within several projects, consider adding it via an additional content root.

Configure include paths

  1. In the Settings dialog (Ctrl+Alt+S) , click PHP.

  2. On the PHP page that opens, configure the list of library folders on the Include path tab:

    • Use Add and Remove to add and remove folder paths.

    • Select a folder and click Exclude to exclude the contents of this folder from indexing.

    Configure include paths dialog

Configure include paths for all newly created projects

To configure include paths that will be applied to all newly created projects, use the default new project settings:

  1. In the main menu, go to File | New Projects Setup | Settings for New Projects.

  2. On the Settings dialog that opens, go to Languages and Frameworks | PHP and click Add in the Include Path tab to add paths to the required folders.

    Configure include paths for new projects dialog
Last modified: 17 June 2024