PHP CodeSniffer, Linter and Mess Detector Plugin For Sublime Text 2

This is a plugin for Sublime Text 2 which enables the user to right click on files and generate an error report for PHP (and css/js for that matter) files using the PHP_CodeSniffer, Linter and PHP Mess Detector.

Features

Once you have right clicked on a file and selected "PHP CodeSniffer" > "Sniff this file..." you will get the output as shown below (depending on the settings you have defined):

Quick Panel

PHP_CodeSniffer Plugin for Sublime Text 2

Gutter Marks

PHP_CodeSniffer Plugin for Sublime Text 2

Status Bar

If you click on a line with an error, the status bar will be updated to show the error:

PHP_CodeSniffer Plugin for Sublime Text 2

Configuration

You can also define the configuration for the following settings:

You can set these options by following this menu path:

PHP_CodeSniffer Plugin for Sublime Text 2

Installation

You can install this in one of two ways:

  1. Package Control (Recommended)
  2. Git - Simply checkout the git repo into "~/Library/Application Support/Sublime Text 2/Packages/Phpcs" or the equivalent folder on Windows or Linux.

Changelog

To track the changes more frequently, you can review the Changelog here