PHPackages                             webimpress/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. [Testing &amp; Quality](/categories/testing)
4. /
5. webimpress/coding-standard

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

webimpress/coding-standard
==========================

Webimpress Coding Standard

1.4.0(1y ago)142.1M—3.9%7[5 issues](https://github.com/webimpress/coding-standard/issues)[4 PRs](https://github.com/webimpress/coding-standard/pulls)20BSD-2-ClausePHPPHP ^7.3 || ^8.0CI passing

Since Mar 7Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/webimpress/coding-standard)[ Packagist](https://packagist.org/packages/webimpress/coding-standard)[ GitHub Sponsors](https://github.com/michalbundyra)[ RSS](/packages/webimpress-coding-standard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (27)Used By (20)

Webimpress Coding Standard
==========================

[](#webimpress-coding-standard)

[![Unit Tests](https://github.com/webimpress/coding-standard/actions/workflows/phpunit.yml/badge.svg)](https://github.com/webimpress/coding-standard/actions/workflows/phpunit.yml)[![Coding Standards](https://github.com/webimpress/coding-standard/actions/workflows/phpcs.yml/badge.svg)](https://github.com/webimpress/coding-standard/actions/workflows/phpcs.yml)[![Coverage Status](https://camo.githubusercontent.com/ee147f2a33fabb599199d40502739116280565d3343f6e8f480cdf8626833cb0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f776562696d70726573732f636f64696e672d7374616e646172642f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/webimpress/coding-standard?branch=master)

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

[](#installation)

1. Install the module via composer by running:

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

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

    ```

        config
        src
        test

    ```

As shown above you must define locations or files you want to be checked and fixed by code sniffer. 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
    ```

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance53

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 96.5% 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

Every ~89 days

Recently: every ~243 days

Total

24

Last Release

580d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.2.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/06864e2afad0a0cb0b46016664bf5895c3378c8b413e0bddd03075011fc6d731?d=identicon)[webimpress](/maintainers/webimpress)

---

Top Contributors

[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (850 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (19 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (5 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (1 commits)")[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (1 commits)")[![Xakki](https://avatars.githubusercontent.com/u/426468?v=4)](https://github.com/Xakki "Xakki (1 commits)")[![rieschl](https://avatars.githubusercontent.com/u/3321556?v=4)](https://github.com/rieschl "rieschl (1 commits)")[![kynx](https://avatars.githubusercontent.com/u/1320145?v=4)](https://github.com/kynx "kynx (1 commits)")

---

Tags

code-sniffercoding-standardphpcspsr-12psr-2phpcswebimpressPSR-2Coding Standardpsr-12

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[escapestudios/symfony2-coding-standard

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.1M275](/packages/escapestudios-symfony2-coding-standard)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[endouble/symfony3-custom-coding-standard

Customized CodeSniffer ruleset for the Symfony3 projects

11108.3k1](/packages/endouble-symfony3-custom-coding-standard)

PHPackages © 2026

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