commonground / phpcs-rules
Common Ground rules for PHP-CS-Fixer
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/commonground/phpcs-rules
Requires
- php: >=8.3
- friendsofphp/php-cs-fixer: ^3.59
README
Provides some helpful, opinionated PHP-CS-Fixer rules aimed at normalizing code.
Currently, the only rule included is wrap_block_comments.
To use these rules, run:
composer require --dev commonground/phpcs-rules
Then add the following to your .php-cs-fixer.dist.php:
require("vendor/autoload.php"); // if not already present $cfg->registerCustomFixers([ new \CommonGround\PhpCsFixer\WrapBlockCommentFixer(), ]);
wrap_block_comments
wrap_block_comments wraps multi-line block comments (including docblocks)) to a
configurable maximum line length, defaulting to 80 columns. See the doc comments
for this fixer for details.
License
The CommonGround PHP-CS-Fixer rules, as with all Common Ground components, are MIT licensed. See LICENSE for the full text.