Registry / utility / sebastian-phpcpd

sebastian-phpcpd

JSON →
library6.0.3phppackagistunverified

Copy/Paste Detector (CPD) for PHP code.

composer require sebastian/phpcpd
INSTALL
IMPORT
SIG · SEBASTIAN-PHPCPD
S
sebastian-phpcpd
utilityphpv6.0.3
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.

Detector
use SebastianBergmann\PHPCPD\Detector\Detector;

Detect copy/paste code in a directory

use SebastianBergmann\PHPCPD\Detector\Detector; $detector = new Detector(); $result = $detector->copyPasteDetection('path/to/php/files'); foreach ($result->getClones() as $clone) { echo $clone->percentage() . '% duplicated'; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
sebastian-phpcpd — pip install sebastian-phpcpd · libregistry