NetBeans IDE and Zend 3

For those who have never heard about NetBeans, no worries, you’ve just missed a powerful tool to work with, depending on the language(s) you employ the most, choosing between IDEs (Integrated Development Environment) might not be easy and once you get used to one in particular then why switching ?

There are so many comparison charts on the Internet about using Eclipse over NetBeans and vis versa, if you are programming with Java, there is no much concerns about picking up Netbeans over Eclipse but for Php developers, that would be interesting to look at both IDEs to make sure you are using the most suitable for you.

Here at Linkstraffic, we will talk about Eclipse and NetBeans depending on the project and tutorial topic. Today we are going to get started with NetBeans.


First off, download the right packages for your computer at the following location : Oracle.

  • Java SE Development Kit
  • Java JDK Platform

Then make sure you are ready to get working by having :

  • a Php server (can be remote or local)

If you already have the Java Development Kit, then launch the JavaBeans installer :

Select the different options you need and click Next.

NetBeans QuickStart

At anytime I suggest you to read the documentation on NetBeans. However you may just go straight to the point by following the following steps :

Let’s start and create a project :

  1. File -> New Project
  2. Php Application

Along with Zend 3 we will need the Php7 version. Select the default options or change these according to your needs.

On the next screen, I’ve choosen to use a remote Php server running with Apache2, Php7 and Mysql but you can also choose to use a local server.

Click on Manage connections and fill in details of your server and project directory :

Once you ‘ve clicked  on OK, select the right options and go to the next screen :


I’ve selected the url with port 8080 which implies running Zend in developement mode with the built in Php server.

Do not select any Php framework unless you need to generate the files, we will work only on our module and application files, the rest is already present on the server. For the composer option, there is no need to integrate the tool also as it’s on the server side.

Once you are done with the tasks, you should get the following screen :

Now download your application files to your local directory (project workspace of NetBeans) an you should get this :

You can change the default directory so you can see your autoload configuration files of your project and other vendor components but here we will stay simple.

If you have followed the Zend 3 initiation tutorial, then upon running the command :

$ composer serve

You should see you default Zend page on your project url (ie :

Now play with the files a bit and checkout the results.

For example, build a module.php file inside a new module src directory and save it, you should see the following log lines :

If not then make sure your server access is properly set up.


Further with NetBeans

That’ok for now, you have installed and configured your IDE to get on the right tracks using this wonderful tool. If you haven’t realized how powerful NetBeans can be then check out our next tutorials on it, we will overview the following features :

  • Database connection (remotely or locally)
  • Php debugging with XDebug
  • PhpUnit integration
  • Php annotations with phpDocumentator

To learn more on this IDE and other programming tools, make sur you are following us on Facebook and subscribe to our mailing list.

Stay tuned !

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Want more information?

Related links will be displayed within articles for you to pick up another good spot to get more details about software development, deployment & monitoring.

Stay tuned by following us on Youtube.

%d bloggers like this: