CmdID

CmdID / Commands

phpcs

Tokenize PHP, JavaScript, and CSS files to detect violations of a defined set of coding standards. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Sniff the specified directory for issues (defaults to the PEAR standard)

phpcs path/to/directoryIdentify

Display a list of installed coding standards

phpcs -iIdentify

Specify a coding standard to validate against

phpcs path/to/directory --standard standardIdentify

Specify comma-separated file extensions to include when sniffing

phpcs path/to/directory --extensions file_extension1,file_extension2,...Identify

Specify the format of the output report (e.g. full, xml, json, summary)

phpcs path/to/directory --report formatIdentify

Set configuration variables to be used during the process

phpcs path/to/directory --config-set key valueIdentify

Specify a comma-separated list of files to load before processing

phpcs path/to/directory --bootstrap path/to/file1,path/to/file2,...Identify

Don't recurse into subdirectories

phpcs path/to/directory -lIdentify