cline/coding-standard
Opinionated PHP-CS-Fixer + Rector presets for modern PHP 8.4+ projects. Enforces strict coding standards, naming conventions, and architecture rules, with custom fixers, PHPDoc wrapping, and optional legacy tag/header rules for incremental adoption.
Opinionated PHP-CS-Fixer configuration with custom fixers and presets for modern PHP projects. Enforces strict coding standards, naming conventions, and architectural patterns.
PHPDoc presets also include an 80-column docblock prose wrapper so long
descriptions stay readable without relying on manual formatting.
The bundled Rector preset also enables PHP 8.5 pipe-operator migrations
for nested function calls and sequential assignment chains.
The Standard preset removes @author tags by default while still
allowing explicit opt-in to the legacy author-tag fixer.
It also removes @version tags by default while still allowing explicit
opt-in to the legacy version-tag fixer.
It removes the file-level license header by default while still allowing
explicit opt-in to the legacy header_comment rule.
It does not infer @psalm-immutable from PHP's shallow readonly
modifier. Add that semantic annotation intentionally, or explicitly opt
in to the deprecated fixer when every targeted class satisfies Psalm's
behavioral immutability contract.
For EasyCodingStandard configs, prefer Factory::configure(...) in
ecs.php; the older Factory::create(...) closure API remains
available for compatibility.
Requires PHP 8.4+
composer require cline/coding-standard --dev
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
The MIT License. Please see License File for more information.
How can I help you explore Laravel packages today?