PHPackages                             olegkolt/phphd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. olegkolt/phphd

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

olegkolt/phphd
==============

Search unused code

010PHP

Since Aug 27Pushed 11y ago1 watchersCompare

[ Source](https://github.com/olegkolt/phphd)[ Packagist](https://packagist.org/packages/olegkolt/phphd)[ RSS](/packages/olegkolt-phphd/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHPHD - PHP Hunt for Decedent
=============================

[](#phphd---php-hunt-for-decedent)

**Found unused code in your project**

**PHPHD** is a library that provides collection and rendering functionality for PHP code coverage information. PHPHD uses **xdebug** for collecting information. PHPHD is similar to the [PHP\_CodeCoverage](https://github.com/sebastianbergmann/php-code-coverage), but PHPHD much faster and can be used in web sites.

Requirements
------------

[](#requirements)

- PHP 5.3.3 is required but using the latest version of PHP is highly recommended
- [Xdebug](http://xdebug.org/) 2.1.3 is required but using the latest version of Xdebug is highly recommended

Installation
------------

[](#installation)

To add PHPHD as a local, per-project dependency to your project, simply add a dependency on `olegkolt/phphd` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on PHPHD:

```
{
    "require": {
        "olegkolt/phphd": "dev-master"
    }
}

```

Using the PHPHD API
-------------------

[](#using-the-phphd-api)

### Collect coverage data

[](#collect-coverage-data)

```
