Command-line tool
php-code-sniffer
brew/php-code-sniffer
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Check coding standards in PHP, JavaScript and CSS
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install php-code-sniffer
Fix issues in the specified directory (defaults to the PEAR standard)
phpcbf path/to/directory
Display a list of installed coding standards
phpcbf -i
Specify a coding standard to validate against
phpcbf path/to/directory --standard standard
Related command-line tools
- standard
JavaScript Style Guide, with linter & automatic code fixer - sniffer
Modern alternative network traffic sniffer - bwip-js
JavaScript barcode generator supporting over 100 types and standards. bar code generator barcode javascript node react… - sniffglue
Secure multithreaded packet sniffer - lunarml
Standard ML compiler that produces Lua/JavaScript - ettercap
Multipurpose sniffer/interceptor/logger for switched LAN - spacesniffer
A tool application that lets you understand how folders and files are structured on your disks. - csv-nose
CSV dialect sniffer using Garcia's Table Uniformity Method
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents