PHPackages                             isaac/php-code-sniffer-baseliner - 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. isaac/php-code-sniffer-baseliner

Abandoned → [iodigital-com/php-code-sniffer-baseliner](/?search=iodigital-com%2Fphp-code-sniffer-baseliner)ArchivedLibrary[Testing &amp; Quality](/categories/testing)

isaac/php-code-sniffer-baseliner
================================

ISAAC PHP Code Sniffer Baseliner

v2.3.1(3y ago)16114.7k↓32.5%4[4 issues](https://github.com/isaaceindhoven/php-code-sniffer-baseliner/issues)MITPHPPHP ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0

Since Jan 13Pushed 2y ago6 watchersCompare

[ Source](https://github.com/isaaceindhoven/php-code-sniffer-baseliner)[ Packagist](https://packagist.org/packages/isaac/php-code-sniffer-baseliner)[ RSS](/packages/isaac-php-code-sniffer-baseliner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (18)Used By (0)

Renamed and moved to iO CodeSniffer Standard
============================================

[](#renamed-and-moved-to-io-codesniffer-standard)

This repository has been archived and renamed, moved to [iO PHP\_CodeSniffer Baseliner](https://github.com/iodigital-com/php-code-sniffer-baseliner). Feature sniffs and changes will be processed in the iO repository.

PHP\_CodeSniffer Baseliner
==========================

[](#php_codesniffer-baseliner)

This tool enables you to integrate PHP\_CodeSniffer into an existing project by automatically adding `phpcs:ignore` and `phpcs:disable`/`phpcs:enable` instructions throughout the codebase as a baseline. This allows you to make PHP\_CodeSniffer pass without changing any source code, making it possible to use PHP\_CodeSniffer in e.g. continuous integration pipelines or git hooks. This way, you can enforce that all new code adheres to your coding standard without touching the existing code.

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

[](#installation)

Require the package with composer:

```
composer require --dev isaac/php-code-sniffer-baseliner
```

It is also possible to install this package as a global composer dependency.

Usage
-----

[](#usage)

In order to add `phpcs:ignore` and `phpcs:disable`/`phpcs:enable` instructions throughout your project, run:

```
vendor/bin/phpcs-baseliner create-baseline
```

How does it work?
-----------------

[](#how-does-it-work)

First, the tool runs `vendor/bin/phpcs` and captures the report. Based on the report output, it will add `// phpcs:ignore` instructions to the source code for each violation. It will only ignore the sniffs that actually are violated. In rare cases, adding these instructions could introduce new violations. Therefore, this process is repeated until no violations are reported by `phpcs`.

Example
-------

[](#example)

Let's say we want to enforce `declare(strict_types = 1);` statements and native property type hints using PHP\_CodeSniffer. The Slevomat Coding Standard has sniffs for this: `SlevomatCodingStandard.TypeHints.DeclareStrictTypes`and `SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint`. We install Slevomat Coding Standard and add the sniffs to our ruleset in `phpcs.xml`.

If we now run `vendor/bin/phpcs-baseliner create-baseline` in our project, it will add ignore instructions in all files not containing `declare(strict_types = 1);` statements or native property type declarations:

```
- `.
- Support ignoring violations on the first line of a file that end with a multi-line string, example: ```

    ```
- Support detection of and merging with older types of ignore instructions, such as `@phpcsSuppress`.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~86 days

Recently: every ~141 days

Total

13

Last Release

1280d ago

Major Versions

v1.1.0 → v2.0.02021-01-11

PHP version history (3 changes)v2.0.0PHP ~7.3.0 || ~7.4.0 || ~8.0.0

v2.2.0PHP ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0

v2.3.0PHP ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80809e7caf8341b1bac3d759e2b159a38b9bdab2deee5b0d4d66de6c83b992d1?d=identicon)[IntractoSupport](/maintainers/IntractoSupport)

![](https://www.gravatar.com/avatar/9e723dd83f374215e85b05fa260826f267bcef0dfb1026246ca1d845ae4f3a39?d=identicon)[JeroenNoten](/maintainers/JeroenNoten)

![](https://www.gravatar.com/avatar/6f1ed5a230a1b7a889ad5bb727fc43f070e2d57ad9f857625226096cbfcc80c7?d=identicon)[aadmathijssen](/maintainers/aadmathijssen)

![](https://www.gravatar.com/avatar/5270be3fd791a1045f0d928c0ca5d801d2c9dac77b83338a8ac877b94c6f7934?d=identicon)[mischabraam](/maintainers/mischabraam)

---

Top Contributors

[![jeroennoten](https://avatars.githubusercontent.com/u/4370753?v=4)](https://github.com/jeroennoten "jeroennoten (72 commits)")[![francoisvdv](https://avatars.githubusercontent.com/u/290790?v=4)](https://github.com/francoisvdv "francoisvdv (1 commits)")[![melvinversluijs](https://avatars.githubusercontent.com/u/10958064?v=4)](https://github.com/melvinversluijs "melvinversluijs (1 commits)")[![muuk-iO](https://avatars.githubusercontent.com/u/97738632?v=4)](https://github.com/muuk-iO "muuk-iO (1 commits)")[![thomasheller](https://avatars.githubusercontent.com/u/2400778?v=4)](https://github.com/thomasheller "thomasheller (1 commits)")

---

Tags

phpphpcodesnifferphpcs

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/isaac-php-code-sniffer-baseliner/health.svg)

```
[![Health](https://phpackages.com/badges/isaac-php-code-sniffer-baseliner/health.svg)](https://phpackages.com/packages/isaac-php-code-sniffer-baseliner)
```

###  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)[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)

PHPackages © 2026

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