PHPackages                             digitalrevolution/php-codesniffer-baseline - 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. digitalrevolution/php-codesniffer-baseline

ActiveComposer-plugin[Testing &amp; Quality](/categories/testing)

digitalrevolution/php-codesniffer-baseline
==========================================

Digital Revolution PHP\_Codesniffer baseline extension

v1.3.0(7mo ago)18923.6k—0.9%4[2 issues](https://github.com/123inkt/php-codesniffer-baseline/issues)[1 PRs](https://github.com/123inkt/php-codesniffer-baseline/pulls)4MITPHPPHP &gt;=8.1CI passing

Since Feb 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/123inkt/php-codesniffer-baseline)[ Packagist](https://packagist.org/packages/digitalrevolution/php-codesniffer-baseline)[ RSS](/packages/digitalrevolution-php-codesniffer-baseline/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (8)Used By (4)

[![Minimum PHP Version](https://camo.githubusercontent.com/f122c5025942fe8de411dd9ac3bb941c9aa06956fd722682b3867257f834fbf0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d383839324241)](https://php.net/)[![Run tests](https://github.com/123inkt/php-codesniffer-baseline/workflows/Run%20checks/badge.svg)](https://github.com/123inkt/php-codesniffer-baseline/workflows/Run%20checks/badge.svg)

PHP\_Codesniffer baseline
=========================

[](#php_codesniffer-baseline)

To be able to add PHP\_Codesniffer or adding new rules to an existing project, it is not always possible to solve all the new issues that appear. As PHPCodesniffer doesn't have a baseline mechanism and while [Issue:137](https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/137) has not reached a final solution yet, this package can be used to baseline your projects current issues.

Getting Started
---------------

[](#getting-started)

```
composer require --dev digitalrevolution/php-codesniffer-baseline
```

Create baseline
---------------

[](#create-baseline)

Create the baseline by using phpcs regularly and writing the report with the Baseline report class. You must write the baseline to the root of the project and name it `phpcs.baseline.xml`.

```
php vendor/bin/phpcs src tests --report=\\DR\\CodeSnifferBaseline\\Reports\\Baseline --report-file=phpcs.baseline.xml --basepath=.
```

Or convenient wrapper for the above command:

```
php vendor/bin/phpcs-baseline src tests [--no-exit-code]
```

Usage
-----

[](#usage)

Use phpcs like you normally would. With `phpcs.baseline.xml` in the root of your project, the baseline extension will automatically read the config file and skip errors that are contained within the baseline.

Under the hood
--------------

[](#under-the-hood)

As PHP\_Codesniffer doesn't have a nice and clean way to add an extension, this package will inject a single line of code into the `/vendor/squizlabs/php_codesniffer/src/Files/File.php` upon `composer install` or `composer update`. While this is a fragile solution, this is only until [Issue:137](https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/137) has reached an acceptable solution and implementation.

About us
--------

[](#about-us)

At 123inkt (Part of Digital Revolution B.V.), every day more than 50 development professionals are working on improving our internal ERP and our several shops. Do you want to join us? [We are looking for developers](https://www.werkenbij123inkt.nl/zoek-op-afdeling/it).

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance72

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 78.7% 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 ~265 days

Recently: every ~317 days

Total

6

Last Release

214d ago

PHP version history (3 changes)v1.0.0PHP &gt;=8.0

v1.1.0PHP &gt;=7.4

v1.2.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe1034dcdc9935e9b7f7a733490a5095282445a8526e30e9097e0782c78e24c1?d=identicon)[bram123](/maintainers/bram123)

![](https://www.gravatar.com/avatar/d144b8d21d1631a75230f12330a9cb0ef6608581a5e6989c18677ac52295e271?d=identicon)[FrankDekker](/maintainers/FrankDekker)

![](https://www.gravatar.com/avatar/20e2ae81f6cffdb8c1b1a488b7f2f70270a5d1bf2a57aae09950697ac0ef3dad?d=identicon)[123Tim](/maintainers/123Tim)

---

Top Contributors

[![frankdekker](https://avatars.githubusercontent.com/u/2179983?v=4)](https://github.com/frankdekker "frankdekker (48 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (8 commits)")[![bram123](https://avatars.githubusercontent.com/u/7457368?v=4)](https://github.com/bram123 "bram123 (3 commits)")[![mk-vodafone](https://avatars.githubusercontent.com/u/62647009?v=4)](https://github.com/mk-vodafone "mk-vodafone (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digitalrevolution-php-codesniffer-baseline/health.svg)

```
[![Health](https://phpackages.com/badges/digitalrevolution-php-codesniffer-baseline/health.svg)](https://phpackages.com/packages/digitalrevolution-php-codesniffer-baseline)
```

###  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)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

598161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[magento/magento-coding-standard

A set of Magento specific PHP CodeSniffer rules.

37113.4M299](/packages/magento-magento-coding-standard)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13197.9k1](/packages/axelerant-drupal-quality-checker)

PHPackages © 2026

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