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 7mo 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 1mo 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

19

—

LowBetter than 10% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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://www.gravatar.com/avatar/0cbe8d66405659eb7cf0776a653954c4c8ea3817c00d026a9cd165b86c80e38f?d=identicon)[DZunke](/maintainers/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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M679](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M753](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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