Side by side
PHP CS Fixer vs Uncrustify
Both stand on code formatters. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan LinuxSelf-hosted
PHP CS Fixer offers automatic formatting alongside a reporting-only mode, with configurable styles and editor and CI options. Its MIT license and free price make it available without a listed purchase cost.
Visit PHP CS Fixer Free plan LinuxMacSelf-hosted+1
Uncrustify offers extensive formatting controls and command-line processing across several languages. Its stated bugs and testing needs make output review important, especially before formatting a whole codebase.
Visit UncrustifyThe facts
| PHP CS Fixer | Uncrustify | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux, Self-hosted | Linux, Mac, Self-hosted, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | cs.symfony.com | github.com |
| On code formatters | #9 of 22 | #13 of 22 |
PHP CS Fixer: what it does well
- Built-in rule sets cover PER, Symfony, and PhpCsFixer styles
- Custom styles and rules are supported
- `check` reports without changing files
- Risky rules are off by default
- Editor plugins and CI examples are documented
What to know first
- Supports PHP only
- No free trial
- Risky rules are not run by default
Uncrustify: what it does well
- Formats eight listed programming languages
- Version 0.83.0 has 901 configurable options
- Processes multiple files from the command line
- Provides Vim guidance and an IntelliJ plugin
- Free and GPL-2.0 licensed
What to know first
- The README warns that the application has bugs
- Java and Objective-C support need more testing
- Embedded SQL behavior needs more testing
Alternatives to PHP CS Fixer Alternatives to Uncrustify The whole list