LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

phpcs

PHP CodeSniffer

TLDR

Check file
$ phpcs [file.php]
copy
Check directory
$ phpcs [src/]
copy
Use specific standard
$ phpcs --standard=PSR12 [file.php]
copy
Show summary only
$ phpcs --report=summary [src/]
copy
Generate report
$ phpcs --report-file=[report.txt] [src/]
copy

SYNOPSIS

phpcs [options] [files...]

DESCRIPTION

phpcs is PHP CodeSniffer. Detects coding standard violations.The tool checks code style. Supports PSR, PEAR, and custom standards.

PARAMETERS

FILES

Files or directories.
--standard NAME
Coding standard.
--report TYPE
Report format.
--report-file FILE
Save report to file.
-n
Ignore warnings.
--help
Display help.

CAVEATS

Configuration via phpcs.xml. Custom standards possible.

HISTORY

PHP_CodeSniffer was created for enforcing PHP coding standards.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid