Tech riderRev. 20 Sept 2026
PHP_CodeCoverage
- 1Runs onself-hosted
- 2CostsNot stated by the maker
- 3Coverage typesline, branch, path
- 4Supported languagesPHP
- 5Report formatsHTML, XML, Clover, OpenClover, Cobertura, Crap4J, text, serialized PHP
4 lines stated Written from the maker's own pages: github.com

Overview
PHP_CodeCoverage is ranked #20 of 26 in test coverage tools on Specifiction. It runs on Self-hosted.
Compared on test coverage tools
- Coverage types
- line, branch, pathgithub.com
- Supported languages
- PHPgithub.com
- Report formats
- HTML, XML, Clover, OpenClover, Cobertura, Crap4J, text, serialized PHPgithub.com
Facts
- Purpose
- PHP_CodeCoverage is a library for collecting, processing, and rendering PHP code coverage information.github.com · 4 Oct 2026
- Installation
- The library can be added as a local project dependency with Composer using `composer require phpunit/php-code-coverage`.github.com · 4 Oct 2026
- Development use
- For development-only use, the README recommends adding it as a development dependency with `composer require --dev phpunit/php-code-coverage`.github.com · 4 Oct 2026
- Coverage metrics
- The PHPUnit manual says the library supports line, branch, path, function and method, class and trait coverage, and the CRAP index.docs.phpunit.de · 4 Oct 2026
- Coverage drivers
- The package suggests PCOV for line coverage and Xdebug for line, branch and path coverage.github.com · 4 Oct 2026
- HTML reports
- HTML reports provide directory and file views with line-by-line highlighting, plus class, trait and function views organized by namespace.docs.phpunit.de · 4 Oct 2026
- Parallel runs
- Serialized coverage files from separate test runs can be merged with phpcov to produce a combined report.docs.phpunit.de · 4 Oct 2026
- Patch analysis
- The phpcov patch-coverage command calculates coverage for changed lines in a unified diff.docs.phpunit.de · 4 Oct 2026
- Integration
- The repository describes the library as a first-party dependency of PHPUnit.github.com · 4 Oct 2026
- Security reporting
- The library follows PHPUnit's security policy; vulnerability reports should be sent through coordinated disclosure rather than public GitHub issues, discussions or pull requests.github.com · 4 Oct 2026
- License
- The package is licensed under BSD-3-Clause.github.com · 4 Oct 2026
- Runtime requirements
- The current package requires PHP 8.4 or later and the DOM, libxml, mbstring and xmlwriter extensions.github.com · 4 Oct 2026
- Coverage limitation
- The PHPUnit manual says PCOV supports line coverage only; branch and path coverage require data collected with Xdebug.docs.phpunit.de · 4 Oct 2026
Best PHP_CodeCoverage alternatives
See all 20 All accessCh 01 Coveralls Free planFree trialAPI from $10/mo7.6 All accessCh 02 ReportGenerator Free planFree trialLinux Free to start7.6 All accessCh 03 Codecov Free planFree trialAPI from $5/mo7.3 All accessCh 04 OpenClover Free planLinuxMac Free to start7.3 All accessCh 05 SimpleCov Free planLinuxMac Free to start7.2 All accessCh 06 Coverage.py Free planAPILinux Free to start7.1
Where it ranks on Specifiction
- Best Test Coverage Tools in 2026#20 of 26
Is PHP_CodeCoverage yours?
Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.
Sources
- github.com/sebastianbergmann/php-code-coverage· checked 4 Oct 2026
- github.com/sebastianbergmann/php-code-coverage/blo· checked 4 Oct 2026
- docs.phpunit.de/en/13.4/code-coverage.html· checked 4 Oct 2026
- github.com/sebastianbergmann/php-code-coverage/blo· checked 4 Oct 2026
- github.com/sebastianbergmann/php-code-coverage/blo· checked 4 Oct 2026

