Registry / utility / tomasvotruba-type-coverage

tomasvotruba-type-coverage

JSON →
library2.1.0phppackagistunverified

Measure type coverage of your PHP project to enforce strict typing.

composer require tomasvotruba/type-coverage
INSTALL
IMPORT
SIG · TOMASVOTRUBA-TYPE-
T
tomasvotruba-type-coverage
utilityphpv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypeCoverage
use TomasVotruba\TypeCoverage\TypeCoverage;

Measure type coverage for a project directory.

<?php\nuse TomasVotruba\\TypeCoverage\\TypeCoverage;\n\n$typeCoverage = new TypeCoverage();\n$result = $typeCoverage->measure('/path/to/project');\necho 'Type coverage: ' . $result->getPercentage() . '%';
Debug
Known issues
breakingRequires PHP 8.0+ and uses PHPStan for analysis.
fix
Install PHPStan and ensure PHP 8.0+.
affects: >=1.0
Upgrade
Version history
2.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
tomasvotruba-type-coverage — pip install tomasvotruba-type-coverage · libregistry