PhpStorm 2023.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 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.

Enable the Phing plugin

This functionality relies on the Phing plugin, which is bundled and enabled in PhpStorm by default. If the relevant features aren't available, make sure that you didn't disable the plugin.

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

  2. Open the Installed tab, find the Phing plugin, and select the checkbox next to the plugin name.

Enabling Phing support

Enable Phing in the project settings

  1. In the Settings dialog (Ctrl+Alt+S) , go to 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 a 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: 04 March 2024