Skip to content
SPECIFICTION
Get listed

clang-tidy vs PHP_CodeSniffer

clang-tidy

clang.llvm.org

PHP_CodeSniffer

github.com

Side by side

Figureclang-tidyPHP_CodeSniffer
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYes—
Self-hosted—Yes
Plans published11
Spec score · Linters8.5 (#4)7.3 (#29)
Automatic fixesThe -fix option applies suggested fixes when supported by the corresponding checks.It includes phpcbf, a script that automatically corrects coding standard violations.
LicenseThe LLVM project states that its code is licensed under the Apache 2.0 License with LLVM exceptions.The repository identifies PHP_CodeSniffer as BSD-3-Clause licensed.
Purposeclang-tidy is a Clang-based C++ linter for diagnosing and fixing typical programming errors, including style violations, interface misuse, and bugs detectable by static analysis.PHP_CodeSniffer tokenizes PHP files and detects violations of a defined coding standard.

Plans

clang-tidy

  • clang-tidyFree

clang-tidy pricing →

PHP_CodeSniffer

  • PHP_CodeSnifferFree

PHP_CodeSniffer pricing →

In their own words

clang-tidy

clang-tidy has no write-up on Specifiction yet; its figures are above.

Visit clang.llvm.org

PHP_CodeSniffer

PHP_CodeSniffer has no write-up on Specifiction yet; its figures are above.

Visit github.com