About Easy Coding Standard
Easy Coding Standard, or ECS, is a PHP tool that checks and fixes code style. It combines the rules of PHP CodeSniffer and PHP-CS-Fixer into a single command, so a project can enforce a consistent coding standard without maintaining two separate configurations or toolchains.
Configuration lives in one PHP file, ecs.php, which ECS creates on first run with your directories and a starter rule. From there you can add prepared rule sets covering arrays, spaces, namespaces, docblocks, control structures, comments, casing and cleanup, or use standalone presets such as PSR-12, PER-CS and a clean-code set. Running it shows suggested diffs, and adding a fix flag applies them. Runs are parallel by default, which keeps checks fast.
ECS installs on any PHP project from version 7.2 to 8.5 regardless of the project's own dependencies, because it bundles what it needs. It is written in PHP and released under the MIT licence. This repository is the deployed package, with development happening in a separate source repository. It suits PHP teams that want style checks in local workflows and CI.
Key features
- Runs PHP CodeSniffer and PHP-CS-Fixer rules together
- Parallel execution out of the box
- Single ecs.php configuration file
- Prepared rule sets for common topics
- PSR-12 and PER-CS presets
- Works on PHP 7.2 through 8.5
Good fit for
- →Enforcing code style in CI pipelines
- →Auto-fixing legacy PHP codebases
- →Consolidating two code style tools into one
- Built with
- PHP
- Tags
- php
- coding-standard
- code-style
- linter
- php-cs-fixer
- codesniffer
- ci
- psr-12
- parallel
Open-source alternatives to Easy Coding Standard
See all
golangci-lint
Developer Tools
Fast linters runner for Go
GPL-3.0★ 19k
Revive
Developer Tools
🔥 Fast, strict, configurable, extensible, and beautiful linter for Go
MIT★ 5.6k
PhpMetrics
Developer Tools
Beautiful and understandable static analysis tool for PHP
MIT★ 2.6k
Woke
Developer Tools
Detect non-inclusive language in your source code.
MIT★ 517PHP Insights
Developer Tools
🔰 Instant PHP quality checks from your console
MIT★ 5.6k
Laravel Telescope
Developer Tools
An elegant debug assistant for the Laravel framework.
MIT★ 5.2k
SaaS alternatives to Easy Coding Standard
See all
BuildBuddy
Developer Tools
Remote build caching, execution and results UI for Bazel
SaaS
Develocity
Developer Tools
Build and test acceleration and analytics platform for Gradle and Maven builds
SaaS
PhpStorm
Developer Tools
JetBrains IDE for PHP and web development
SaaS
Qodana
Developer Tools
JetBrains static analysis tool that brings IDE inspections to CI pipelines
SaaS
1DevTool
Developer Tools
Desktop workspace for running several AI coding agents side by side across multiple projects
SaaS
act101
Developer Tools
Codebase quality and refactoring toolkit for coding agents, with code porting and verification
SaaS

