SublimeLinter plugin for PHP, using phpcs.
Clone or download
Latest commit e543e58 Aug 25, 2018
Permalink
Failed to load latest commit information.
messages prep 2.3 Jul 23, 2018
.travis.yml clean up Mar 3, 2018
LICENSE init Dec 18, 2013
README.md Proper quoting in the settings example Aug 25, 2018
linter.py don't lint blade Jul 23, 2018
messages.json prep 2.3 Jul 23, 2018

README.md

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, 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

Per-project Standards

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

{
    "settings": {
        "SublimeLinter.linters.phpcs.args": "--standard='${folder}/phpcs.xml'"
    }
}