AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents