Composer
for Windows and Linux
for OS X
Ctrl+Alt+S
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 Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling 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 the use of Composer Dependency Manager through the dedicated user interface by specifying the paths
to the PHP engine installation and to the composer.phar
archive to look for Composer commands in.
When the file analyses is completed, IntelliJ IDEA returns to the Command Line Tools page of the Settings dialog bos where the specified file is added to the list of command line tools available in IntelliJ IDEA.
Item | Description |
---|---|
Path to PHP executable | In this field, specify the location of the PHP engine installation folder. Choose the PHP installation from the list, or type the path manually, or click the Browse button and choose the desired location in the dialog box that opens. |
Path to composer.phar |
In this text box,
specify the location of the composer.phar archive.
Type the path manually or click the Browse button
and choose the desired location in the dialog box that opens.
|
Click here to download from getcomposer.org |
Click this link
to have IntelliJ IDEA download composer.phar from the official storage and specify the folder to store the archive in.
This instance of Composer will be available in the current project only.
To use it in the command line mode, configure it as a command line tool.
|
Path to composer.json |
In this text box,
specify the location of the composer.json for listing descriptions of the project dependencies.
Type the path manually or click the Browse button
and choose the desired location in the dialog box that opens.
|
Add packages as libraries |
|