cline / php-cs-fixer
Centralized coding standards for Cline projects using PHP-CS-Fixer, ECS, and Rector
Requires
- php: ^8.5.0
- cline/struct: ^2.0
- driftingly/rector-laravel: ^2.1.9
- ergebnis/composer-normalize: ^2.50.0
- erickskrauch/php-cs-fixer-custom-fixers: ^1.3.1
- friendsofphp/php-cs-fixer: ^3.94.2
- kubawerlos/php-cs-fixer-custom-fixers: ^3.36.0
- larastan/larastan: ^2.0 || ^3.9.3
- pestphp/pest: ^3.0 || ^4.4.1
- pestphp/pest-plugin-laravel: ^3.0 || ^4.1
- pestphp/pest-plugin-type-coverage: ^3.0 || ^4.0.3
- phpstan/phpstan: ^2.1.40
- rector/rector: ^2.3.8
- slevomat/coding-standard: >=8.28.0
- squizlabs/php_codesniffer: ^4.0.1
- symplify/coding-standard: ^13.0
- symplify/easy-coding-standard: ^13.0.4
Requires (Dev)
- laravel/pint: ^1.27.1
- orchestra/testbench: ^8.0 || ^9.0 || ^10.9
- symfony/var-dumper: ^6.0 || ^7.4.6 || ^8.0
README
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 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.
Requirements
Requires PHP 8.4+
Installation
composer require cline/coding-standard --dev
Documentation
- Basic Usage - Getting started with configuration and running fixers
- Custom Fixers - Architecture and naming convention fixers
- Presets - Standard, PHPDoc, PHPUnit, and Ordered rule presets
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.