Code Quality

PHP CS Fixer

PHP CS Fixer automatically fixes many PHP coding style issues for consistent code formatting.

Overview

PHP CS Fixer automatically fixes many PHP coding style issues for consistent code formatting.

Example

composer require --dev friendsofphp/php-cs-fixer
vendor/bin/php-cs-fixer fix src

Commit a project configuration and review automated changes.

Official repository: PHP CS Fixer

Evaluation checklist

  • Prefer official documentation and repositories.
  • Check supported PHP versions and release history.
  • Review installation instructions and license terms.
  • Keep dependencies updated and run security checks.