PhpStorm 8.0.0 Web Help

Before enabling Phing in your project, make sure the following requirements are fulfilled:

  1. Phing is downloaded and set up on your computer. If you are using an AMP, the package may already contain Phing.
  2. The Phing Support plugin is enabled. The plugin is bundled with PhpStorm and enabled by default. If not, activate it in the Plugin Configuration Wizard or the Plugins page of the Settings dialog box.

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

  • Explicitly through the project settings, in the Phing page of the Settings dialog box.
  • When adding a file to the list of Phing build files.

    Tip

    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.

In this section:

To enable Phing integration support through the project settings
  1. Open the project settings by choosing File | Settings on the main menu. Then click Phing.
  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.

    Tip

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

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

Procedures:

Reference:

Web Resources: