PHP Coding Standards Fixer – fixes your code to follow the standards

Last Updated on March 9, 2026

The PHP Coding Standards Fixer (PHP CS Fixer) fixes your code to follow the standards.

If you are already using a linter to identify coding standards problems in your code, you know that fixing them by hand is tedious, especially on large projects. This tool not only detects them, but also fixes them for you.

PHP CS Fixer has built-in rule sets, whether you want to follow PHP coding standards as defined by PHP-FIG’s PER Coding Style, a wide community like the Symfony, or our opinionated one. You can also define your (team’s) style through the configuration file.

PHP CS Fixer can not only unify the style of your code, but also help to modernize your codebase towards newer PHP (e.g. @autoPHPMigration) and newer PHPUnit (e.g. @autoPHPUnitMigration:risky).

This is free and open source software.

Website: github.com/PHP-CS-Fixer/PHP-CS-Fixer
Support:
Developer: Fabien Potencier, Dariusz Rumiński
License: MIT License

PHP Coding Standards Fixer is written in PHP. Learn PHP with our recommended free books and free tutorials.


Related Software

PHP Linters
PHPStanPHP static analysis tool
PHP Coding Standards FixerFixes your code to follow the standards
MagoExtremely fast PHP linter, formatter, and static analyzer
PsalmStatic analysis tool
PHP_CodeSnifferTokenizes PHP files and detects violations
PHP Parallel LintChecks the syntax of PHP files in parallel
PHPLintSpeed up linting PHP files

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments