# PHP-CS-Fixer/PHP-CS-Fixer

A tool to automatically fix PHP Coding Standards issues

Repository: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
Canonical: https://ross.abutalabs.com/products/php-cs-fixer
Homepage: https://cs.symfony.com
Language: PHP
License: MIT
License Family: permissive
Topics: php, static-analysis, code-style, code-standards
Last push: 2026-08-26T22:08:16+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 5222, "days_push": 7, "days_rel": 7, "gap_med": 3.0, "n_releases_24m": 87}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13544, forks 1643 (observed 2026-08-28T04:11:03.510179+00:00)

## What it is
PHP CS Fixer is a command-line tool that detects and automatically fixes PHP coding standards issues. It ships with built-in rule sets (PER-CS, Symfony, PhpCsFixer, auto-migration sets) and supports custom team configurations.

## Use cases
- automatically fix php coding standards issues
- enforce per-cs or symfony coding style in a php project
- check code style in ci pipeline
- modernize php codebase to newer php syntax
- format php code consistently across a team
- replace manual lint fixing on large php projects

## When to choose
- you maintain a PHP project and want automated, opinionated code style fixing
- you need CI integration for style checks (GitHub Actions, GitLab CI, Docker)
- you want to migrate code style toward newer PHP or PHPUnit conventions

## When to avoid
- your project is not written in PHP
- you only need style detection without fixing and prefer a lightweight linter
- you need formatting for other languages - use language-specific formatters instead

## Facets
- artifact type: cli-tool
- maturity: stable
- function: formatter, linter, developer-tools, ci-cd
- domain: developer-tools, programming-languages
- platform: php, cli, cross-platform
- tags: php, code-style, coding-standards, static-analysis, auto-fix, per-cs, symfony, composer, automation, docker

## Member repositories
- PHP-CS-Fixer/PHP-CS-Fixer (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:03.510179+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:13.361557+00:00, confidence not recorded.
  - readme: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer (fetched 2026-08-28T04:11:03.510179+00:00, sha 9db77b06a827)
  - homepage: https://cs.symfony.com (fetched 2026-08-29T08:07:58.071367+00:00, sha ed51495cea7b)
  - site_page: https://cs.symfony.com/doc/installation.html (fetched 2026-08-29T08:07:58.080567+00:00, sha 2dcbf8003f29)
- Data as of 2026-08-30T08:39:29.467469+00:00.
