php-code-sniffer
« Back to VersTracker
Description:
Check coding standards in PHP, JavaScript and CSS
Type: Formula  |  Latest Version: 4.0.1@0  |  Tracked Since: Nov 10, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: php linter coding-standards static-analysis javascript css
Install: brew install php-code-sniffer
About:
PHP_CodeSniffer is a powerful static analysis tool that detects violations in PHP, JavaScript, and CSS code against defined coding standards. It automates the process of ensuring code consistency and quality across projects. The tool is highly configurable, allowing teams to enforce custom rules and maintain clean, readable codebases.
Key Features:
  • Supports PHP, JavaScript, and CSS analysis
  • Detects coding standard violations automatically
  • Highly configurable with custom rulesets
  • Integrates with CI/CD pipelines and IDEs
Use Cases:
  • Enforcing coding standards in team projects
  • Automated code quality checks in CI/CD pipelines
  • Refactoring legacy codebases to meet modern standards
Alternatives:
  • PHP-CS-Fixer – Focuses on automatically fixing coding standard issues, whereas PHPCS primarily detects and reports them.
  • ESLint – A linter specifically for JavaScript, while PHPCS supports multiple languages including PHP and CSS.
Version History
Detected Version Rev Change Commit
Nov 10, 2025 5:53pm 0 VERSION_BUMP fad9eff8
Sep 17, 2025 1:26am 0 VERSION_BUMP 61a1eaad
Dec 11, 2024 6:48pm 0 VERSION_BUMP 14037b64
Dec 11, 2024 1:30pm 0 VERSION_BUMP 22959d55
Nov 16, 2024 2:34pm 0 VERSION_BUMP 8865f669
Nov 16, 2024 1:54pm 0 VERSION_BUMP d349c94e
Nov 12, 2024 2:28pm 0 VERSION_BUMP a0c1076a
Nov 9, 2024 7:05pm 0 VERSION_BUMP 1904fd12
Sep 18, 2024 9:30am 0 VERSION_BUMP d2f70708