Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

PHP_CodeCoverage

Free#22 of 27 in Test Coverage Tools

PHP_CodeCoverage: A focused open-source coverage library for PHP and PHPUnit workflows. Ranked #22 of 27 in Test Coverage Tools by our editors (6.9/10); pricing: Open source; best for PHP teams using PHPUnit and Xdebug.

6.9/10Editor score
PHP_CodeCoverage6.9 Try PHP_CodeCoverage

At a glance

  • Editor score
    6.9 / 10
  • Pricing
    Open source
  • Best for
    PHP teams using PHPUnit and Xdebug
  • Paid from
    Free
  • Coverage types
    line, branch, path
  • Facts checked
    20 Sep 2026
PHP_CodeCoverage screenshot
  • Where it wins

    • Covers line, branch, and path data through PHP tooling
    • Produces HTML, XML, Clover, Cobertura, and text reports
    • Works with PHPUnit, Xdebug, PCOV, and Composer
  • Where it doesn't

    • Supports PHP only
    • Branch and path coverage require Xdebug
    • Requires developer-led integration rather than a hosted interface

Our verdict on PHP_CodeCoverage

PHP_CodeCoverage is an open-source PHP library for collecting, processing, and rendering code coverage information. It suits developers and teams running PHP test suites, particularly PHPUnit-based workflows. The library collects line coverage and can provide branch and path coverage through Xdebug. It also filters included source files, produces coverage summaries, and supports serialized coverage data for workflows that need to store or exchange results.

Its strongest advantage is report and coverage breadth within the PHP ecosystem. Output can be generated as HTML, XML, Clover, OpenClover, Cobertura, Crap4J, or text, while coverage summaries include executable lines, branches, and paths. Composer distribution fits standard PHP package management, and integrations with PHPUnit, Xdebug, and PCOV connect the library to common PHP testing components. Teams that need several report formats for review, tooling, or CI workflows get more flexibility than a line-only reporting utility.

PHP_CodeCoverage is a better fit for teams comfortable assembling developer tooling than for buyers seeking a hosted coverage dashboard or turnkey product. Its scope is limited to PHP, and branch and path coverage depend on Xdebug. Teams that primarily need PHP line coverage, PHPUnit compatibility, filtering, and export options should find its focused library model suitable. Teams working across multiple programming languages, or those looking for a managed interface and broader platform features, should choose a more expansive alternative.

Your product? Our editors can test PHP_CodeCoverage in depth and publish a review, labelled as paid · from $149/mo →

PHP_CodeCoverage pricing

Plans Open sourceFree Free to use — no paid tier required for the core job.
See plans on github.com

PHP_CodeCoverage fact sheet

Free planNot verified
Paid fromFree
Coverage typesline, branch, path
Supported languagesPHP
Report formatsHTML, XML, Clover, OpenClover, Cobertura, Crap4J, text, serialized PHP
Pull-request annotationsNot verified
Self-hosted optionNot verified
Historical trendsNot verified
Coverage gatesNot verified
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations4 integrations: Composer, Xdebug, PCOV, PHPUnit
PricingOpen source
Websitegithub.com
Facts checked20 Sep 2026

PHP_CodeCoverage integrations

PHP_CodeCoverage lists 4 integrations on its own site.

  • Composer
  • Xdebug
  • PCOV
  • PHPUnit

Alternatives to PHP_CodeCoverage

See all PHP_CodeCoverage alternatives →

Used PHP_CodeCoverage? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used PHP_CodeCoverage for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — PHP_CodeCoverage 6.9/10

PHP_CodeCoverage is listed in our Test Coverage Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/php-codecoverage/"><img src="https://www.itechguides.com/best/badge/php-codecoverage.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update