A new PHP IDE rolls into town – NetBeans
Tuesday, January 13, 2009 16:25Was shocked the other day to hear that someone was using a certain IDE for PHP development. That IDE being Netbeans. If you haven’t ever used NetBeans it is an IDE project child of SUN and use to just be for Java development.
Looks like on the latest version (6.5) you get a whole slew of extra languages to develop in! Check out all the features of NetBeans 6.5 here. Now NetBeans supports (for Dynamic Languages) PHP, Ruby, JavaScript, Groovy, and Python. It also has support for many of the well know AJAX frameworks out there like my personal favorite jQuery. Oh it also has great HTML support.
This IDE has the makings of something great, it’s free, it supports the syntax of many languages. However is it better than the former PHP champ Zend IDE 5.5 (standalone)? Let’s compare the two.
Supported Languages: Zend has compatibility for PHP and HTML, and that is really it. It handles JavaScript ok, at least it’s useful for finding out whether or not I screwed up some brackets while using jQuery.
NetBeans on the other hand can handle a whole slew of languages from Java to C++ to many web-development languages. Netbeans +3.
Syntax Strictness: NetBeans could be stricter on the way it handles the PHP syntax. One thing I always really liked about Zend was when I tried typing a function name and I didn’t write the function yet or didn’t have it included into the file that the IDE gave me a bunch of shit about it. This helps you make sure you don’t have to wait until you debug it to figure you might have spelt it wrong or didn’t include it.
On the flip side NetBeans will throw the penalty flag if your HTML tags are out of order (ex: <tr><td></tr></td>) something Zend doesn’t do. Tie: Zend +1 NetBeans +1.
FTP: One of Zend’s main drawing points for me was it’s awesome FTP support. You could set up a bunch of FTP accounts and be working off multiple servers, transferring files, the whole works. It was incredibly sweet.
NetBeans has FTP support, but you set it up for that project, which works just fine. However sometimes I would use Zend as a FTP program so I didn’t have to boot up FileZilla. Zends was just more robust, Zend +1.
Code Completion: Where would we be today without code completion? Honestly it can save you so much time. Zend would code complete everything everything automatically, it was simple and effective. It didn’t get in the way because they did it right.
NetBeans will code complete automatically on variables, but normally nothing else unless you pull a ctrl+space (at least on linux). I was really turned off by this when I started using it, but over the course of a week I realized how often I didn’t even need code completion. You’d be surprised how often you just don’t even think about it and type it out. I mean I know if I’m going to be typing mysql_fetch_array, I just type mysql and hit ctrl+space. I think this is really a horse a piece, and shouldn’t put my own preference into play. Tie NetBeans +1, Zend +1.
Debugging: Before I started using Zend I was using NuSphere PHP on Windows, which is very good, but pricey. Anyways, NuSphere’s debugging was awesome, Zends – well I never could get it to work at all from Linux. It never really bugged me too much because I’m so use to not using a debugger to debug, I know that sounds weird but I can do it.
NetBeans got the debugger working under Linux no problem, probably because when I tried to debug it told me where to go to set it up. Love it, I can debug just like I use to be able to do with the NuSphere IDE. NetBeans +1.
I could go on for a while but, NeBeans is the winner pretty hands down, it does much more better than Zend. Sure there’s a couple things here or there, but I had been using Zend for at least 6 months so some of that is a little personal bias.
There’s many neat extra features in NetBeans 6.5 but I’ll leave those to you to discover, just check it out. You don’t have to download everything, you can just download the PHP part, so if your using Ubuntu Linux (like me) don’t use apt-get (or aptitude) to get it as they may still have and older version in the repository, and it doesn’t come how you want it – just php.
Happy coding.






















andy_t says:
January 19th, 2009 at 4:05 pm
whats grooby then?
Stava says:
January 19th, 2009 at 4:14 pm
NetBeans 6.x rules. I use it for RoR and now for every edit. Looking forward for news, including PHP.
Brad says:
January 19th, 2009 at 4:33 pm
andy_t: Probably Groovy misspelled.
RLopez says:
January 20th, 2009 at 5:48 am
I just LOVE NetBeans… I use on a everyday basis (i’m a java developer), and just recently entered the php world. Needless to say, i was thrilled with NB supporting php
A new PHP IDE rolls into town - NetBeans | Mad PPC says:
January 21st, 2009 at 12:10 pm
[...] Excerpt from: A new PHP IDE rolls into town – NetBeans | Mad PPC [...]
Sartaj says:
January 25th, 2009 at 11:28 pm
Netbeans is a good editor for php but i need also a rapid visual development. But netbeans 6.5 is not provided visual php like visual jsf.
Brad says:
January 26th, 2009 at 1:00 am
@Sartaj
I’m not familiar with visual jsf – hard for me to comment. The article is more directed twords traditional PHP programmers.
IMHO visual anything will only bloat your code, and I’m kind of a speed head.
I will definitely be checking out visual jsf to see what it’s all about.
php kursu says:
January 27th, 2009 at 6:05 am
thank you
Robert Westenkirchner says:
January 27th, 2009 at 11:03 am
Full ack. NetBeans for PHP is a real time saver. Love the powerful search like “Find in Project”, the easy mouse-over search within a document. Excellent. A well-done open-source product by Sun. Respect!
A New PHP IDE Rolls into Town Java “Programming Source Code” Bookmark says:
February 7th, 2009 at 3:43 pm
[...] read more…. [...]
PHP Expert says:
May 23rd, 2009 at 2:47 am
Personally, i prefer a good and nicely integrated setup involving Dreamweaver, Zend Studio and sometimes notepad ! (Let’s not forget the essential Firefox’s Web Developer Toolbar !)
____________________
Saguenay-IT, (PHP, ASP, Flex, ActionScript, JavaScript, etc.)
Dchelle says:
August 6th, 2011 at 3:10 pm
very helpful…
I preferred to thank you for this good article. http://www.sociologipal.com/pingguo/blog/2643/ I by all odds liked every little bit of it…
Pterker says:
August 8th, 2011 at 9:49 am
Great…
love your blog, http://www.yousaytoo.com/eva11/blogs/dress/35767?37376 ,Thanks again….
Benzing says:
September 1st, 2011 at 9:50 pm
very helpful…
I preferred to thank you for this good article. http://www.blogth.com/manager/view_entries.php I by all odds liked every little bit of it…