PHPackages                             commonground/phpcs-rules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. commonground/phpcs-rules

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

commonground/phpcs-rules
========================

Common Ground rules for PHP-CS-Fixer

v1.0(1y ago)08MITPHPPHP &gt;=8.3

Since Jul 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andfarm/phpcs-rules)[ Packagist](https://packagist.org/packages/commonground/phpcs-rules)[ RSS](/packages/commonground-phpcs-rules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Common Ground rules for PHP-CS-Fixer
====================================

[](#common-ground-rules-for-php-cs-fixer)

Provides some helpful, opinionated [PHP-CS-Fixer](https://packagist.org/packages/friendsofphp/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)

`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
-------

[](#license)

The CommonGround PHP-CS-Fixer rules, as with all Common Ground components, are MIT licensed. See LICENSE for the full text.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

675d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c10eeef671ab4706dfcbabaf479060d976db167e4e8285b547c5389caa8fae6?d=identicon)[commonground](/maintainers/commonground)

---

Top Contributors

[![andfarm](https://avatars.githubusercontent.com/u/1355845?v=4)](https://github.com/andfarm "andfarm (2 commits)")

### Embed Badge

![Health badge](/badges/commonground-phpcs-rules/health.svg)

```
[![Health](https://phpackages.com/badges/commonground-phpcs-rules/health.svg)](https://phpackages.com/packages/commonground-phpcs-rules)
```

###  Alternatives

[kmlaravel/laravel-geographical-calculator

laravel package help you to implement geographical calculation, with With several algorithms that help you deal with coordinates

42677.2k2](/packages/kmlaravel-laravel-geographical-calculator)[jubeki/laravel-code-style

Combine Custom Fixers with the ruleset of Laravel Pint to fix your code style in Laravel Applications/Packages.

56521.7k8](/packages/jubeki-laravel-code-style)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[friendsoftypo3/kickstarter

Extension Kickstarter - Kickstart TYPO3 Extension

243.1k](/packages/friendsoftypo3-kickstarter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
