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

v1.0 2024-07-13 00:01 UTC

This package is auto-updated.

Last update: 2025-12-14 00:11:04 UTC


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.