IntelliJ IDEA 2016.3 Help

Enabling Phing Support

This feature is supported in the Ultimate edition only.

In this section:

Introduction

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

  • Explicitly through the project settings, on the Phing page of the Settings/Preferences dialog box.
  • 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 and enable the Phing Support plugin. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling 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 OS X. Expand the Languages&Frameworks node, and then click Phing under PHP.
  2. In the Phing page that opens, specify the location of the file phing.bat in the Path to Phing executable text box. Type the path manually or click the Browse button browseButton.png and choose the file location in the dialog box 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.
  2. On 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 properties.gif on the toolbar.

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

  4. In the Phing Settings dialog box, 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. On the context menu of the editor, choose Run Build File.
  3. In the Phing Build tool window, that opens, click the Settings button properties.gif on the toolbar.

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

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

See Also

Last modified: 21 March 2017