IntelliJ IDEA 14.0.0 Web Help

Add Composer Dependency Dialog

Tools | Composer | Add Dependency

In this dialog box, appoint the packages to be added to the current project.

Item Description
Available packages From this list, select the package that you need in your project. The list shows all the available packages, however, the packages that have been already installed are marked with a tick. Use the search field, if necessary: start typing the search string, as you type, the list dynamically reduces to show the packages that match the entered pattern. The Description read-only text box briefly explains the functionality of the selected package.
Version to install From this drop-down list, select the package version. The contents of the list depend on the specific package.
Install When you click this button, IntelliJ IDEA starts downloading the appointed package. When the process is completed, IntelliJ IDEA creates a new folder under the Vendor node stores the downloaded package in it, and adds the package to the list in the require section of Composer.json.
Settings In this area, specify the advanced installation options:
  • 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 browseButton.png and choose the desired location in the dialog box that opens.
  • Command line parameters: in this text box, type the additional command line parameters to adjust the add dependency procedure. For example, to have a dependency added to the require-dev section instead of the default require section type -dev. For more information about Composer command line options during installation, see https://getcomposer.org/doc/03-cli.md.

See Also

Last modified: 4 December 2014
comments powered by Disqus