IntelliJ IDEA 2022.3 Help

Enable Phing support

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 (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

Install Phing

  • Make sure Phing is installed on your computer. If you are using an AMP, the package may already contain Phing.

Install the PHP and Phing plugins

This functionality relies on the PHP and Phing plugins that should be installed and enabled in your IDE.

The plugins are available only in IntelliJ IDEA Ultimate.

  1. Press Ctrl+Alt+S to open the IDE settings and select Plugins.

  2. Switch to the Marketplace tab and use the search field to find the PHP and Phing plugins.

  3. Click Install and restart the IDE if prompted.

Enabling Phing support

Enable Phing in the project settings

  1. In the Settings/Preferences dialog (Ctrl+Alt+S), go to Languages & Frameworks | 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 the Browse button and choose the file location in the dialog that opens.

Enable Phing 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.

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: 01 December 2022