Working with PHP Applications

Before You Start

Before you begin to work with PHP applications in NetBeans, you need to install and configure your PHP environment. The PHP environment includes:

For more information, see:

PHP Applications

The following table shows how to work with PHP applications.

Number one
Create and configure a project

Launch the New Project Wizard (Ctrl-Shift-N). You can create an empty PHP project, a project from existing sources, or a project from remote sources. The New PHP Project wizard helps you create a default run configuration for the project. Later you can change the project's configuration or add additional run configurations by right-clicking the project's node in the Projects window and choosing Properties. For more information, see


Number two
Run project

Right-click the project's node in the Projects window and select Run. If the project's run configuration is set to use a local web server, a browser opens and displays the project's index page.

Note that if the project is configured to run as a command-line script, you have to run it from the command line.


Number three
Test project

You can use PHPUnit and Selenium to test a PHP project. See


Number four
Debug project

If you configure Xdebug to work in your PHP environment (see ), you can debug a PHP project from inside NetBeans. See


Legal Notices