How to add php coding standard to Netbeans

1) Setting up CodeSniffer
Type in terminal

 pear install PHP_CodeSniffer 

2) Adding the CodeSniffer to Netbeans
Download the netbeans module here

3) Add the Downloaded file as a new plugin

Tools -> Plugins . see the screenshot below

Screenshot from 2013-05-30 17:47:51

Then go to Downloaded tab and click the Add Plugins..

Screenshot from 2013-05-30 18:09:21

Now click Tools -> Options and go to php tab ,  CodeSniffer tab  and select the coding standard you want

Screenshot from 2013-05-30 17:41:55

Leave a Comment