In this post, we will discuss the steps required to install Incubating NetBeans 10 on Windows for PHP development. The incubating versions of NetBeans i.e. 9 and 10 do not come with an installer, hence we can either build it from the source or use the binary files provided by Apache. We will discuss the installation steps required to install it using the binary files distributed by Apache and write our first PHP program i.e. Hello World.
You can also follow our tutorial How To Install NetBeans 11 for PHP on Ubuntu having details instructions to install NetBeans 11 on Ubuntu. Other similar posts include How To Install Aptana Studio For PHP Development On Windows and How To Install Eclipse for PHP on Windows.
You can also follow How To Install NetBeans 11 for PHP on Windows to install the newer version of NetBeans.
Step 1 Download Binary Distribution
Click Here to visit the download page having appropriate download links and instructions to verify the download as shown in Fig 1.
Step 2 Extract the Download
Now extract the downloaded zip and move it to the appropriate location. Also, locate the executable files as shown in Fig 2.
Step 3 Execute NetBeans
Create the desktop shortcut icon of executable file based on the Operating System processor type i.e. 32-bit or 64-bit. Use netbeans64.exe on 64-bit Windows.
Now execute the NetBeans to explore the all-new features provided by Apache.
Step 4 Import Settings
The newer version of NetBeans might ask to import settings of the previously installed version as shown in Fig 3.
It might also suggest/ask to install additional plugins as shown in Fig 4.
Accept the license agreement and install additional plugins as suggested by NetBeans.
We can also enable the PHP and other plugins manually in case of fresh installation by clicking on Tools -> Plugins and selecting the Available Plugins Tab to choose and install the required plugins. Make sure that the PHP plugin is active for PHP development.
These are the basic steps required to install NetBeans and get it ready for PHP development. Now we will write our first program in PHP using newly installed NetBeans 10.
Step 5 - Create Project
We need to create a project in order to start writing programs. Follow the below-mentioned steps to create a project as shown in Fig 5:
File -> New Project -> PHP -> PHP Application
Now click on Next Button to provide further details. Complete the project details as shown in Fig 6 and click on Next Button.
We will run our first project as a script by selecting the options as shown in Fig 7.
Click on Finish Button to complete project creation. The newly created project looks similar to the one shown in Fig 8.
Step 6 - Write First Program
Now open the file index.php created by NetBeans and write Hello PHP using echo statement as shown in Fig 9.
Right click on index.php and click on Run to run the program as shown in Fig 10.
The final output will be displayed on the Output Panel as shown in Fig 11.
This is the easiest way to execute a PHP program and check the output on Console.