Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP CodeSniffer, PHP Coding Standard Fixer, Linter and Mess Detector Support for Sublime Text
Python JavaScript

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Side Bar.sublime-menu

Sublime PHP CodeSniffer

This plugin adds PHP CodeSniffer support to Sublime Text 2.


Use Sublime Text 2's Package Control (Preferences -> Package Control -> Install Package -> PHP CodeSniffer) to install this plugin.


Simply checkout the git repo into “~/Library/Application Support/Sublime Text 2/Packages/Phpcs or the equivalent folder on Windows or Linux.

PHP CodeSniffer Support For Sublime Text 2

This plugin adds support for running PHP CodeSniffer from inside Sublime Text 2.

Right-click in the editor to:

  • Sniff the current file

You can also open up the Command Palette (CTRL + SHIFT + P on Linux), and type 'PHP CodeSniffer' to see what you can do with PHP CodeSniffer in the currently open file.


You can configure:

  • phpcs_additional_args - This is the extra information you want to pass to the phpcs command. For example which “standard” you want to run, and if you want to show warnings or not
  • phpcs_execute_on_save - Do you want the code sniffer plugin to run on file save for php files?
  • phpcs_show_gutter_marks - Do you want the errors to be displayed in the gutter?
  • phpcs_show_quick_panel - Do you want the errors to be displayed in the quick panel?

Contributions Welcome

PHP CodeSniffer support is based on: PHPUnit plugin which is based on Ruby Tests plugin

Requests for features, and pull requests with patches, are most welcome :)

Something went wrong with that request. Please try again.