Skip to content

Using PHPCheckstyle with Netbeans

tchule edited this page Jan 6, 2017 · 1 revision

Use the phpMD / PHP CodeSniffer Netbeans Plugin (see https://sourceforge.net/projects/phpmdnb/).

Install the Plugin

Use NetBeans plugin manager to install the plugin.

Configure the plugin

The "php cli file" should be already detected, if not set the path to your php installation file.

Set the "PHPCheckstyle run file" value to the "run.php" file in your PHPCheckstyle installation directory.

Set the "config" value to the name of the configuration file used.

You should them be able to use the "check style" contextual menu on any PHP file.