PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Libraries and library roots

Last modified: 27 October 2023

A library is a third-party file or set of files used in a project as is.

PHP libraries are most commonly managed in projects by Composer, which declares them as dependencies and installs to folders in the vendor directory. To distinguish libraries from the project files but still include their classes and methods to the IDE's internal knowledge, PhpStorm marks library folders as library roots. For more information, refer to PHP library roots.

JavaScript libraries can be configured at the global (IDE) or project level, which defines reusability of the library within the IDE. For more information, refer to Configuring Javascript libraries.