PHPackages                             ground/coding-standard - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. ground/coding-standard

ActivePhpcodesniffer-standard[PSR &amp; Standards](/categories/psr-standards)

ground/coding-standard
======================

Coding standard

1.0.13(5y ago)0162MITPHP ^7.1

Since Jul 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DmitryBezik/ground-coding-standard)[ Packagist](https://packagist.org/packages/ground/coding-standard)[ Docs](https://github.com/DmitryBezik/groundcodingstandard)[ RSS](/packages/ground-coding-standard/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (2)

coding-standard
===============

[](#coding-standard)

[![Build Status](https://camo.githubusercontent.com/9ea86773256729427327941dad76f22170d74b6f269382e0acefc10f923e0c30/68747470733a2f2f7472617669732d63692e636f6d2f446d6974727942657a696b2f67726f756e642d636f64696e672d7374616e646172642e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/DmitryBezik/ground-coding-standard)

The coding standard ruleset

This specification extends and expands [PSR-12](https://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md), the extended coding style guide and requires adherence to [PSR-1](https://www.php-fig.org/psr/psr-1), the basic coding standard.

Installation
------------

[](#installation)

1. Install the module via composer by running:

    ```
    $ composer require --dev ground/coding-standard
    ```
2. Add composer scripts into your `composer.json`:

    ```
    "scripts": {
      "cs-check": "phpcs",
      "cs-fix": "phpcbf"
    }
    ```
3. Create `phpcs.xml` file on base path of your repository:

    ```

        config
        src
        test

    ```

You can add or exclude some locations in that file. For a reference please see: [https://github.com/squizlabs/PHP\_CodeSniffer/wiki/Annotated-Ruleset](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset)

Usage
-----

[](#usage)

- To run checks only:

    ```
    $ composer cs-check
    ```
- To automatically fix many CS issues:

    ```
    $ composer cs-fix
    ```

Ignoring parts of a File
------------------------

[](#ignoring-parts-of-a-file)

Disable parts of a file:

```
$xmlPackage = new XMLPackage;
// phpcs:disable
$xmlPackage['error_code'] = get_default_error_code_value();
$xmlPackage->send();
// phpcs:enable
```

Disable a specific rule:

```
// phpcs:disable Generic.Commenting.Todo.Found
$xmlPackage = new XMLPackage;
$xmlPackage['error_code'] = get_default_error_code_value();
// TODO: Add an error message here.
$xmlPackage->send();
// phpcs:enable
```

Ignore a specific violation:

```
$xmlPackage = new XMLPackage;
$xmlPackage['error_code'] = get_default_error_code_value();
// phpcs:ignore Generic.Commenting.Todo.Found
// TODO: Add an error message here.
$xmlPackage->send();
```

Reference
---------

[](#reference)

Rules can be added, excluded or tweaked locally, depending on your preferences. More information on how to do this can be found here:

- [Coding Standard Tutorial](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Coding-Standard-Tutorial)
- [Configuration Options](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options)
- [Selectively Applying Rules](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset#selectively-applying-rules)
- [Customisable Sniff Properties](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Every ~0 days

Total

14

Last Release

2119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e09c61d1781a979f621f8efc49e4da6d88f2c40487fd3eb8aa3ec97b1c0f663?d=identicon)[DmitryBezik](/maintainers/DmitryBezik)

---

Tags

Coding Standard

### Embed Badge

![Health badge](/badges/ground-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/ground-coding-standard/health.svg)](https://phpackages.com/packages/ground-coding-standard)
```

###  Alternatives

[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17508.3k5](/packages/mayflower-mo4-coding-standard)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[orisai/coding-standard

Strict PHP coding standard

19193.5k62](/packages/orisai-coding-standard)[laminas/laminas-coding-standard

Laminas Coding Standard

331.7M534](/packages/laminas-laminas-coding-standard)

PHPackages © 2026

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