Question
I just downloaded Netbeans for Ubuntu. Now I only have Java, how can I add PHP to it?
Answer
Go to Tools->Plugins
On the Installed tab check PHP
and click on Activate. Restart NetBeans.
Note: I assume you have downloaded the appropriate package containing PHP tools.
On 7.0.1 go to Tools->Plugins
click the Settings tab and Activate the Update Centers.
Now click the Available Plugins tab and you should see PHP
Install and Reboot Netbeans.
Check more discussion of this question.