NetBeans IDE: The Best for PHP Development?
After coding practically everything (PHP, JavaScript, CSS, and HTML) in the outdated Zend Studio 5.1 -- from around 2006) for about 2 years -- it is now up to version 8 but I wont go into that -- I've switched over to using NetBeans IDE full time for about 2 weeks and I'm loving it. I have tried NetBeans and the newer, Eclipse-based Zend Studio 7 before but found them too slow and somewhat odd for PHP development. Part of the reason may have been because those newer IDEs do not perform very well on older processors.
That changed when I upgraded to a modern dual-core Athlon II X2 computer with 4GB of RAM. I decided to give NetBeans another shot, since I now had faster hardware, and having seen many of my coworkers use it for a while. I was also attracted to its GPL2 license, respecting the user's freedom with the side effect of not costing anything.
After using it for a few weeks it has gained my full approval and I can only list a few drawbacks.
Pros:
- Create a new project from existing source file directory. It will keep the source files where they are (unless you want to copy them). This allows you to 'plug in' to an existing source structure without having to move anything around.
- Amazing, predictive code completion that works across languages. I have web projects with PHP files, JavaScript files, CSS files, and HTML, and those 4 languages are often times mixed together. When working in your CSS files, it will know about all the CSS classes that are in your PHP and HTML files. When working in a JavaScript <script> tag in a PHP file, it will know about all of your JavaScript functions! And of course it features the must-have PHP code completion as well.
- Handy customizable windows, palettes, and tabs for optimized layouts.
- Highlighting of matching braces or HTML open/close tags (jump to the corresponding one with Ctrl+[ )
- Option to disable autoscanning of source files, leaving it up to the user (or when you open/save a document).
- Debugging with XDebug
- and much more...

Figure 1: Extensive code completion with PHPDoc information (not shown)

Figure 2: It even has MySQL code completion & hinting, although I haven't used it yet.

Figure 3: CSS Code Completion. Guesses what CSS class I'm typing by parsing the project's HTML code.
Cons:
- Probably because of the full featured code completion across all languages, for some projects, the scanning of source files can take a long time upon opening the project. For most of my projects this has been a reasonable 1-3 minutes. One project always takes 10-12 minutes, and I have yet to figure out why. During this initial scan, you can't really use the IDE.
- Doesn't work with Zend Debugger
Because NetBeans is open-source, it depends on the community for feedback, testing, and bug reports. One thing I noticed about the development team is that they're always looking to increase the performance of the IDE, so it's always getting better -- and you can take part in the process. Let's just hope Oracle doesn't screw it up like they're trying to do with everything else...


9 COMMENTS
posted by Aditya Green Tea Mukherjee on: Dec 31, 2010 08:56pm
hmmm... i might consider switching out of Notepad ++ ^_^
posted by on: Dec 31, 2010 08:32pm
oh and just to add, NetBeans also features the commonly know "CTRL + Click" to Jump to a function definition -- but this works across PHP functions, javascript functions, and even CSS classes and variable names! Yes, you can immediately jump to where the CSS class is defined! Amazing!
posted by Petr Pisl on: Jan 5, 2011 10:42am
It's true, the PHP support of Netbeans is driven by community. We need a users who enter bugs and are able to provide usecases, where the ide doesn't behave as you expect or is slow. We welcome every comment. Thanks.
posted by Luiz A. prado on: Jan 12, 2011 09:33pm
Hello! Yes. Netbeans, I think it is the best. I tried to use the Eclipse, but it is realy too slow. I work with it Until Netbeans 4.0 and always it work more quickly than Eclipse. I never find a Eclipse quickly than Netbeans.
posted by Dark Wader on: Jan 12, 2011 09:36pm
Sorry, I mean "since" on the place of the "until"
posted by Mobile websites on: Jan 14, 2011 11:56am
Thanks for posting such information really helpful for us.
posted by Vert Studios on: Jan 17, 2011 11:54pm
Looks pretty neat. My IDE of choice right now is Komodo. I'm actually running a series on my blog called IDE Friday, so I'll be getting around to trying/reviewing NetBeans soon!
posted by on: Jan 18, 2011 01:03am
cool, don't think I know that one. Another thing I realized: NetBeans is even faster on Ubuntu Linux (on same hardware setup as Win 7), even when working off of a network samba drive.
posted by Bello123vista on: Feb 16, 2011 07:18am
i feel they are the best when it comes to provide support on PHP Developmet. To know more about development ...... Web Development