Q: Does Clover work with PHP?
No. Clover instruments Java and Groovy source code only - see Supported Platforms.
However, the PHPUnit testing framework can measure code coverage of a PHP
application and export it to Clover's XML report format, using the
--coverage-clover option:
phpunit --log-junit 'reports/unitreport.xml' --coverage-clover 'reports/clover.xml' test/
Such an XML file can then be consumed by tools which understand Clover's XML format - for instance the Bamboo Clover Plugin (using manual Clover integration) or the Clover PHP Plugin for Jenkins - in order to display code coverage statistics and trend graphs.
Note that PHPUnit's --coverage-html option produces PHPUnit's own HTML report, which
is not Clover's HTML report.
See Using Clover for PHP for details.