Download NetBeans at here. This script will install the Java JRE and NetBeans in one go.
After installation start up the NetBeans IDE. If you are running under gnome the fontsize is a bit big.
You can change this by adding
–laf javax.swing.plaf.metal.MetalLookAndFeel –fontsize 14
to your desktop shortcut. Th desktop shortcut is located at ~/.local/share/applications/. Change the line that starts with Exec to:
/bin/sh "/home/berend/netbeans-7.4/bin/netbeans" --laf javax.swing.plaf.metal.MetalLookAndFeel --fontsize 12
Now it is time to install the PHP plugin. Go to Tools -> Options; order by name and search for the PHP plugin. Select it and press install. Accept the dependencies and the license and press install. Choose restart the IDE now and press Finish.
Install also the PHPUnit plugin to help you create Unit testing classes.