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 bundled with PhpStorm and activated by default. If the plugins are not activated, enable them on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
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, PhpStorm 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 PhpStorm.
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 PhpStorm 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 |
|