| What it is | Automatically fixes PHP code to follow coding standards | Detect and fix coding standard violations in PHP | Runs PHP_CodeSniffer and PHP-CS-Fixer rules together, fast | A tool for formatting Rust code according to style guidelines |
| Features | - fixes coding standard issues, not only reports them
- check mode for CI that reports what would change
- built-in rule sets: @PER-CS, @Symfony and @PhpCsFixer
- configuration file for a project's own style
- custom rules
- migration sets to modernise code for newer PHP and PHPUnit versions
- supports PHP 7.4 to 8.5
- install with Composer, a shim package, PHIVE or Docker
- All 10 features
| - phpcs detects coding standard violations
- phpcbf fixes them automatically
- built-in standards and custom rulesets
- project configuration files
- signed PHAR downloads and Composer
| - runs PHP_CodeSniffer and PHP-CS-Fixer rules in one tool
- one ecs.php config, created on first run
- prepared sets: PSR-12, PER Coding Style, Laravel and topic sets
- parallel runs and a bundled Go engine (--blink)
- works on PHP 7.2 to 8.5 projects
| - formats Rust code to the style guidelines
- cargo fmt for whole projects and workspaces
- --check mode for CI
- rustfmt.toml or .rustfmt.toml configuration
- stable and nightly toolchain components
- editor integrations for Vim, Emacs, VS Code and others
|