The page is available only when the PHP and the Command Line Tool Support plugins are enabled. The plugins are not bundled with IntelliJ IDEA, but they can be installed from the JetBrains plugin repository as described in Managing Plugins. Once enabled, the plugins are available at the IDE level, that is, you can use them in all your IntelliJ IDEA projects.
On this page, enable execution of Composer Dependency Manager commands through the dedicated user interface and appoint the default composer.json for the IntelliJ IDEA project.
Path to composer.json
| In this text box, specify the location of the composer.json that you want to use as default. All the Composer commands invoked from on the main menu will be executed in accordance with the settings from this configuration file. |
You can have several composer.json files in one IntelliJ IDEA project. For each composer.json, actions are invoked from its context menu in the editor or in the Project view, or using the shortcut links on top of the editor panel.
Add packages as libraries
| Use this checkbox to configure the open-for-edit status of Composer packages. To protect packages under |
If you want to edit the Composer packages under
Synchronize IDE settings with composer.json
| Select this checkbox to automatically detect the PHP language level and configure project Source and Test roots based on the configuration from composer.json. |
IntelliJ IDEA is aware of PSR-0/PSR-4 source roots and of their namespace prefixes declared in the
Because composer.json contains the most up-to-date information about the project configuration, this automatic synchronization ensures that the Source and Test folder exactly match the project structure and the correct PHP language level is set automatically.
Choose one of the configured PHP interpreters from the list. See Configuring Remote PHP Interpreters for details.
Path to composer.phar
In this text box, specify the location of the
Click here to download from getcomposer.org
Click this link to download