I, as a university-related person with Java, followed the development of NetBeans almost from its inception, from the very beginning,
I was forced to use it by this IDE shown by my teacher, Vadim Monakhov (I was proud to find a link to it from
wikipedia , the literature section). Now I often come across the fact that PHP programmers
write govnokod referring to the underdevelopment of the IDE do not know how to do Refactoring and many of them stop the lack of automated tools. Actually, I decided to take away this argument from them: there are tools and today I will consider NetBeans as a development environment for PHP and demonstrate its power.
With your permission, a couple of references:
official download page:
http://netbeans.org/downloads/index.htmldeveloper version:
http://bertram.netbeans.org/hudson/job/PHP-build/lastStableBuild/Much of what I say has become available in the latest release.
How usually remain curve names of methods, in the code? a person writes, then uses, then changes, then clarifies the context of use and now he is ready to rename, but there is a problem - too many changes in the code. You can of course do auto-change on files, but you need to check the context and ensure that there are no errors. What can NetBeans offer us?
actually consider an example (taken
here ):

we just put the cursor in the right place and press CTRL + R (I must say that this is the renaming technique that should be available in the Refactoring -> Rename tab), after which we safely rename all the places where this method was called in the entire project, mentioning documentation (if it is correctly framed via JavaDoc style).
Note: If you select it in the stable version 6.9.1 in the standard way via the menu or via the context menu of the right mouse button, you will see the message “The Rename refactoring cannot be applied in this context” is a bug and is fixed in the developer version.Similarly, you can rename the class name in the whole project:
note: obviously calls from the category $ o = new $ className (); can not be processed, but the fact that they need to be minimized, I think once again should not be said. At least they can always be signed with the comment see RealClassName')
after which you will see the rename control tool:

where you need to tick the target + you can see the changes directly in the code:

Also in the IDE built powerful search tools with which you can find all the uses of this code (Alt + F7 or in the context menu of the right mouse click):

You can just as easily find all the entity inheritance / redefinitions in the entire project:

I draw your attention that these functions are experimental and will be introduced into the main project after some time (usually a month and a half).
I want to describe a little more the advantages of this IDE - I really like it.
IDE allows you to work with version control systems (svn, cvs, mercurial,
git ), so it can also keep a local history by itself:

If you write like a chicken with a paw and absolutely cannot force yourself to write on codeStyle, then the IDE will help you - one press Alt + Shift + F (Source-> Format) and you have formatted code. By the way CodeStyle is customizable!
The system supports Smarty syntax (as well as duplicate Quicky syntax).
for those who are lazy to write Getters and Setters there is a special tool (discard the
hacks ):
ALT + Insert (Source-> Insert Code) inside the class

There are many more advantages in the system, and it is developing rapidly, to admit to version 6.2 it was a corner, but now one of the best IDEs, a worthy replacement for ZEND and Eclipse, has many advantages. Fears that with the change of the host, the IDE’s fate will become questionable; the developers are actively working and delighting me with the speed of making improvements. In general, I would like to thank the SUN guys for many thanks for this legacy, all the same, it's pretty damn cool that Java has a native IDE for free, behind which there is such a powerful force as the creators of the language, well, their interest in PHP is especially pleasant. By the way, PHP 5.3 avalible -)
This article is addressed more likely to those who are interested in opportunities, are looking for an IDE and generally want to make their lives better. There is no purpose to make a lengthy overview - it’s long and difficult, and I still can’t afford it, but I hope this note will shed light on this valuable tool, especially in the context of such a popular language like PHP and allow programmers to write even better code, spending less effort. Thanks for attention.
UPD :
ukko Add more please search and go to the desired class by Ctrl + O
Imenem I would also add to the article a search in projects (ctrl + shift + F) with the ability to search both in all projects and in a separate selected folder, with the support of regularizers, which allows you to find everything
bald2b
Disable auto indexing (for huge projects) Tools - Options - Misc - Files - Enable autoscanning of sources?
ZEN-Coding: http://github.com/lorenzos/ZenCodingNetBeansPlugin#readme