PHP_CodeSniffer
5.6#31 in lintersFree planFree planSelf-hosted
Visit
| Fact | PHP_CodeSniffer | Ruff |
|---|---|---|
| Automatic fixes | It includes phpcbf, a script that automatically corrects coding standard violations. | Ruff can automatically fix lint violations, including removing unused imports. |
| Installation | The project documents installation through PHAR downloads, Composer, Phive, or a Git clone. | Ruff can be installed using uv, pip, pipx, standalone installers, and package managers including Homebrew and Conda. |
| Purpose | PHP_CodeSniffer tokenizes PHP files and detects violations of a defined coding standard. | Ruff is a Python linter and code formatter written in Rust. |
| Support | The project directs users to its GitHub issue tracker for bug reports and feature requests and to its wiki for documentation. | The editor setup documentation says setup instructions are provided on a best-effort basis and directs users to open an issue for assistance. |
You want what its maker publishes above — check its page for the details.
Ruff suits Python developers who want linting, formatting, and automatic fixes in one tool. It may also suit teams using supported editors, CI integrations, or pre-commit hooks.