Monday, October 25, 2010

Home Grown : 4. NetBeans IDE for PHP development

I'm using the Netbeans IDE for PHP development for last 3-4 Months. There might be something better but for now Netbeans suffices my needs. Still I encourage you to seek alternatives. Perhaps you might get something better.
Now you must question : NetBeans is a Java IDE. So why use it for PHP? Well all I can say is that, because it supports PHP. And whatever support it provides is more than enough for me - at least as of now. So we install NetBeans Full Version which comes with all the goodies and also it has PHP support.

It supports syntax highlighting for PHP, HTML, JavaScript and CSS. Intelligent autoSuggest is also provided. AutoSuggest works great with HTML and PHP. It's a bit shaky with JavaScript mostly due to JavaScript's loosely typed nature. But then I'm not much good with JavaScript either - hmmm I was doing a joke, serious. Anyway but what little highliting etc works that should be more than enough. Actually I use Mozilla Firefox's FireBug extension to debug JavaScript and trust me it's a GodSend. It lets you do everything that you can expect from a decent debugger. For me the best functionality is step through. It lets you see runtime values of variables so that you know if there's some stupid spelling mistake messing with things. So FireBug's very highly recommended. You can also use Google Chrome which has similar functionality inbuild through "Inspect Element".

With Netbeans we have inherent support for a PHP project and we get templates to for various files. Also integrated is Symphony Framework and that one I'm yet to tinker with. We are also provided with PHP code clips through Tools > Palette > PHP Code Clips.
Using Projects window we can arrange the files in our Website as suits our need. We get tabs for multipple open files that makes navigation easier.

For CSS we get a style builder which lets us see the output and lists all parameters we can change. This makes working with CSS styles a breaze. For HTML we have autocompletion of end tags and syntax highlighting. Also is indentation which helps us keep track of blocks even in HTML.
the major shortcoming of Netbeans is its slow since it runs on Java. But still all above features coupled with the nice simple interface make Netbeans a very good IDE.


Download the Project from
HERE .

No comments:

Post a Comment