PhpStorm 2017.2 Help


A library is a collection of code used in your projects as is. This collection is presented in a set of files stored in an archive or directory (or in a number of archives and directories).

Libraries may optionally include API documentation which enables you to use inline documentation extracted from the source code and to view the API documentation right from PhpStorm.

Libraries are protected against any kind of modification, such as direct intentional editing or update result from refactoring. Libraries are also excluded from error checks. All this allows you to save resource and improve performance and productivity.

JavaScript libraries can be configured at the global (IDE) or project level. The level of a library defines reusability of the library within the IDE.

In PHP development, you can use a third-party tool or framework as a library in several modes:

In either case, you can use exploded and archived tool sources. PhpStorm recognizes most popular ZIP and TAR.GZ formats as well as the PHP native PHAR format.

All the PHAR files from the current project and the specified include path are shown in the project tool window under the Project View/Libraries/PHAR node and available for browsing right there. PHAR files are involved in indexing and therefore are used in autocompletion, search, reference resolution, etc.

Last modified: 12 October 2017

See Also