# ecsphp/ecs

ECS runs PHP-CS-Fixer and PHP_CodeSniffer as a single, parallel fast tool with zero dependencies. Run on PHP 7.2+

Repository: https://github.com/ecsphp/ecs
Canonical: https://ross.abutalabs.com/products/ecsphp-ecs
Homepage: https://tomasvotruba.com/blog/zen-config-in-ecs
Language: PHP
License: MIT
License Family: permissive
Topics: coding-standard, php, coding-style, psr-12, ci, parallel
Last push: 2026-08-24T17:02:39+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3473, "days_push": 9, "days_rel": 9, "gap_med": 0, "n_releases_24m": 24}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1621, forks 92 (observed 2026-08-28T04:05:12.402189+00:00)

## What it is
Easy Coding Standard (ECS) is a zero-dependency PHP CLI tool that runs PHP-CS-Fixer and PHP_CodeSniffer rules together in a single parallel run, configured via one simple ecs.php file. It supports PHP 7.2 through 8.5 and offers prepared rule sets like PSR-12 for quick setup.

## Use cases
- enforce coding standards on a php codebase
- run php-cs-fixer and php codesniffer with one tool
- auto-fix code style violations with ecs --fix
- check psr-12 compliance in ci pipeline
- generate a starter coding standard config for a php project
- speed up php linting with parallel execution

## When to choose
- you want a single tool combining PHP-CS-Fixer and PHP_CodeSniffer rules
- you need fast parallel code-style checks on any PHP 7.2+ project
- you prefer simple single-file PHP configuration with prepared rule sets

## When to avoid
- you only need one of the two underlying tools and want to avoid an extra wrapper
- your project is not PHP
- you need linting for languages other than PHP

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, formatter, cli, developer-tools
- domain: developer-tools, testing
- platform: php, cli, cross-platform
- tags: coding-standard, php-cs-fixer, phpcodesniffer, psr-12, code-style, parallel-processing, ci, command-line, automation

## Member repositories
- ecsphp/ecs (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:12.402189+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-30T03:49:13.755748+00:00, confidence not recorded.
  - readme: https://github.com/ecsphp/ecs (fetched 2026-08-28T04:05:12.402189+00:00, sha 7e2dea3c2dab)
  - homepage: https://tomasvotruba.com/blog/zen-config-in-ecs (fetched 2026-08-29T11:21:42.683638+00:00, sha 43ff8d2ab434)
- Data as of 2026-08-30T08:39:29.467469+00:00.
