IntelliJ IDEA 2019.1 Help

Enabling Phing Support

At the project level, you can enable Phing in the following ways:

  • Explicitly through the project settings, on the Phingpage of the Settings/Preferences dialog (Ctrl+Alt+S).

  • When adding a file to the list of Phing build files. A correct Phing build file is an xml file with the root element <project>.

  • On the fly, when you attempt to run a build from the editor or from the project tool window.

In either case, the Phing Build tool window becomes available from the View | Tool Windows | Phing Build menu within the scope of the current project.

Before you start

  1. Make sure Phing is downloaded and set up on your computer. If you are using an AMP, the package may already contain Phing.

  2. Install the Phing Support plugin on the Plugins page as described in Managing plugins.

Enabling Phing support

To enable Phing support through the project settings

  1. Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for macOS. Expand the Languages & Frameworks node, and then click Phing under PHP.

  2. In the Phing page that opens, specify the location of the phing.bat file in the Path to Phing executable field. Type the path manually or click Browse browseButton.png and choose the file location in the dialog that opens.

To enable Phing support from the Phing Build tool window

  1. Open a Phing build file in the editor or select it in the Project tool window.

    A correct Phing build file is an xml file with the <project> root element.

  2. From the context menu of the editor or the selection, choose Add as Phing build file.

  3. In the Phing Build tool window, that opens, click the Settings button the Properties button on the toolbar.

    The button is only available if the list of build files is not empty.

  4. In the Phing Settings dialog, that opens, specify the location of the phing.bat executable file.

To enable Phing on the fly, when attempting to run a build file

  1. Open an Phing build file in the editor.

  2. From the context menu of the editor, choose Run Build File.

  3. In the Phing Build tool window, that opens, click the Settings button the Properties button on the toolbar.

    The button is only available if the list of build files is not empty.

  4. In the Phing Settings dialog, that opens, specify the location of the phing.bat executable file.

Last modified: 20 May 2019

See Also

Procedures: