PHPackages                             dzunke/panaly-baseline-plugin - 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. dzunke/panaly-baseline-plugin

ActiveLibrary[Testing &amp; Quality](/categories/testing)

dzunke/panaly-baseline-plugin
=============================

A Panaly plugin that deliver metrics from various quality tool baselines

03[1 PRs](https://github.com/DZunke/panaly-baseline-plugin/pulls)PHPCI passing

Since Aug 13Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/DZunke/panaly-baseline-plugin)[ Packagist](https://packagist.org/packages/dzunke/panaly-baseline-plugin)[ RSS](/packages/dzunke-panaly-baseline-plugin/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Panaly - Project Analyzer - Baseline Plugin
===========================================

[](#panaly---project-analyzer---baseline-plugin)

The plugin for the [Panaly Project Analyzer](https://github.com/DZunke/panaly) provides metrics for various tool baselines in the development ecosystem. When introducing new quality tools or rules, it's not always feasible to fix all errors immediately. Most tools offer a "baseline" feature to store existing errors at a specific time, which are then ignored during checks. This allows developers to fix these issues over time while ensuring new code meets quality standards, preventing new technical debt.

Available Metrics
-----------------

[](#available-metrics)

### PHPMD Baseline Count

[](#phpmd-baseline-count)

Identifier: `phpmd_baseline_count`

Returns an `Integer` result with the count of entries in a PHPMD baseline file, which can be filtered by subject.

OptionDescriptionbaseline**(Required)** The PHPMD baseline file, which must be readable and in the known PHPMD XML format.filter**(Optional)** An array of rules to filter the baseline, e.g., `StaticAccess` or `CyclomaticComplexity`.### PHPStan Baseline Count

[](#phpstan-baseline-count)

Identifier: `phpstan_baseline_count`

Returns an `Integer` result with the sum of entries in a PHPStan baseline file, summarizing the count of each entry.

OptionDescriptionbaseline**(Required)** The PHPStan baseline file, which must be readable and in the known PHPStan NEON format.paths**(Optional)** Only count files for specific paths in the baseline file. A path can be anything valid in a CODEOWNERS file.### Psalm Baseline Count

[](#psalm-baseline-count)

Identifier: `psalm_baseline_count`

Returns an `Integer` result with the sum of all `code` entries representing a single error within a class.

OptionDescriptionbaseline**(Required)** The Psalm baseline file, which must be readable and in the known Psalm XML format.paths**(Optional)** Only count files for specific paths in the baseline file. A path can be anything valid in a CODEOWNERS file.Example Configuration
---------------------

[](#example-configuration)

```
# panaly.dist.yaml
plugins:
    DZunke\PanalyBaseline\BaselinePlugin: ~ # no options available

groups:
    baselines:
        title: "Baseline Overview"
        metrics:
            phpmd_baseline_count:
                baseline: ./path/to/my/baseline.xml
            phpmd_baseline_count_cyclomatic:
                title: PHPMD Cyclomatic Complexity Baseline Count
                baseline: ./path/to/my/baseline.xml
                filter: [ 'CyclomaticComplexity' ]
```

Thanks and License
------------------

[](#thanks-and-license)

**Panaly Project Analyzer - Baseline Plugin** © 2024+, Denis Zunke. Released utilizing the [MIT License](https://mit-license.org/).

> GitHub [@dzunke](https://github.com/DZunke) · Twitter [@DZunke](https://twitter.com/DZunke)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance41

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1244235?v=4)[Denis Zunke](/maintainers/DZunke)[@DZunke](https://github.com/DZunke)

---

Top Contributors

[![DZunke](https://avatars.githubusercontent.com/u/1244235?v=4)](https://github.com/DZunke "DZunke (7 commits)")

---

Tags

metricspanalyphp

### Embed Badge

![Health badge](/badges/dzunke-panaly-baseline-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/dzunke-panaly-baseline-plugin/health.svg)](https://phpackages.com/packages/dzunke-panaly-baseline-plugin)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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