Search by

bafs / psalm-plugin-typecov

BafS

Get nice type coverage reports

Package info

github.com/BafS/psalm-typecov

Type:psalm-plugin

pkg:composer/bafs/psalm-plugin-typecov

Statistics

Installs: 1 721

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 2

v1.0.0 2025-02-04 21:41 UTC

This package is auto-updated.

Last update: 2026-10-01 15:04:10 UTC


README

Experimental Psalm plugin to have type coverage information

Install

composer req --dev bafs/psalm-plugin-typecov

Register the plugin in psalm.xml:

    <plugins>
        <pluginClass class="BafS\PsalmTypecov\TypeCoverage">
            <htmlReport output="typecov-report.html" />
        </pluginClass>
    </plugins>

Use markdownReport instead of (or together with) htmlReport to get a Markdown table, handy for pull request comments or a GitHub Actions job summary:

            <markdownReport output="typecov-report.md" />

You can run psalm (typically ./vendor/bin/psalm) and the report will get generated on the fly.

Note: If you want to always scan all the files, you need to use the --no-cache flag.

Screenshoot