PHPackages                             brainbits/phpcs-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. brainbits/phpcs-standard

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

brainbits/phpcs-standard
========================

Brainbits Coding Style

8.0.1(6mo ago)166.1k↓15.2%2[2 PRs](https://github.com/brainbits/phpcs-standard/pulls)13MITPHPCI passing

Since Apr 9Pushed 5mo ago3 watchersCompare

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

READMEChangelogDependencies (5)Versions (28)Used By (13)

How to Use
==========

[](#how-to-use)

Global
------

[](#global)

1. Clone repository
2. Install dependencies ```
    composer install
    ```
3. Configure standard: ```
    {install-dir}/vendor/bin/phpcs --config-set default_standard BrainbitsCodingStandard
    ```
4. Execute: ```
    {install-dir}/vendor/bin/phpcs {src-dir}
    ```

In Project
----------

[](#in-project)

1. Add the standard to your project: ```
    composer require brainbits/phpcs-standard
    ```
2. Configure standard: ```
    vendor/bin/phpcs --config-set default_standard BrainbitsCodingStandard
    ```
3. Execute: ```
    vendor/bin/phpcs {src-dir}
    ```

In Project with Ruleset Customization
-------------------------------------

[](#in-project-with-ruleset-customization)

1. Add the standard to your project: ```
    composer require brainbits/phpcs-standard
    ```
2. Create phpcs.xml (See [https://github.com/squizlabs/PHP\_CodeSniffer/wiki/Advanced-Usage](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage))
    1. Include brainbits ruleset: ```

        ```
    2. Add default src-dir: ```
        {src-dir}
        ```
    3. Tweak to your needs, for example add rules or disable rules included in the brainbits standard.
3. Execute: ```
    vendor/bin/phpcs
    ```

Docker
------

[](#docker)

1. docker run -it --rm -v $PWD:/app brainbits/phpcs-standard {src-dir}

Used Code Styles
================

[](#used-code-styles)

- Slevomat
- Doctrine

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance70

Regular maintenance activity

Popularity33

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~120 days

Recently: every ~230 days

Total

24

Last Release

196d ago

Major Versions

3.0.x-dev → 4.0.02020-07-28

4.0.3 → 5.0.02021-04-27

5.0.1 → 6.0.02022-08-31

6.1.0 → 7.0.02023-04-28

7.0.2 → 8.0.02025-03-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a25dcc661a3094c990b37332c58b8b7a085666f4b830dff8762d86c0e786c2b?d=identicon)[brainbits](/maintainers/brainbits)

---

Top Contributors

[![temp](https://avatars.githubusercontent.com/u/216128?v=4)](https://github.com/temp "temp (6 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (3 commits)")[![daFish](https://avatars.githubusercontent.com/u/150416?v=4)](https://github.com/daFish "daFish (2 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")

---

Tags

codestylestandardsniffercodingcsbrainbits

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brainbits-phpcs-standard/health.svg)

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

###  Alternatives

[doctrine/coding-standard

The Doctrine Coding Standard is a set of PHPCS rules applied to all Doctrine projects.

31914.1M739](/packages/doctrine-coding-standard)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

242.8M5](/packages/moodlehq-moodle-cs)

PHPackages © 2026

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