ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-phpcs

by SublimeLinter ST3

SublimeLinter plugin for PHP, using phpcs.

Details

Installs

  • Total 55K
  • Win 28K
  • OS X 15K
  • Linux 12K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 19 20 33 49 49 45 28 11 18 40 30 42 35 47 19 26 30 27 30 32 19 11 20 22 23 43 39 26 22 15 14 27 48 27 26 21 17 29 28 36 38 42 35 23 36 40
OS X 5 14 12 19 16 22 15 6 7 10 20 18 12 19 6 16 15 11 15 11 4 2 8 8 7 10 13 3 7 12 13 12 16 18 14 4 8 10 20 11 20 18 5 7 23 16
Linux 4 7 9 11 10 9 6 9 10 15 16 14 11 8 2 7 15 12 9 7 7 7 6 6 7 9 11 4 6 8 14 4 10 14 8 5 3 11 9 15 10 9 6 8 16 16

Readme

Source
raw.​githubusercontent.​com

SublimeLinter-phpcs

Build Status

This linter plugin for SublimeLinter provides an interface to phpcs. It will be used with files that have the “PHP”, “HTML” and “HTML5” syntax.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before using this plugin, you must ensure that phpcs is installed on your system, preferably somewhere in your PATH. To install phpcs, follow the instructions on https://github.com/squizlabs/PHP_CodeSniffer#installation.

Settings

Project Specific Executable

It is possible to specify the phpcs executable that should be used to lint your code on a per-project level.

Example:

{
    "SublimeLinter": {
        "linters": {
            "phpcs": {
                "cmd": "${project}/vendor/bin/phpcs"
            }
        }
    }
}

Per-project Standards

You can set up your project settings to use a specific standard using the following:

{
    "SublimeLinter": {
        "linters": {
            "phpcs": {
                "standard": "${project}/phpcs.xml"
            }
        }
    }
}