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

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

phpcpd-next

Free#11 of 23 in Code Clone Detection ToolsCode Duplication Detection Tools

phpcpd-next: A focused open-source choice for PHP teams that need detailed clone reports in CI. Ranked #11 of 23 in Code Clone Detection Tools by our editors (8.1/10); pricing: Open source; best for PHP projects needing CI-ready clone reports.

8.1/10Editor score
phpcpd-next8.1 Visit phpcpd-next

At a glance

  • Editor score
    8.1 / 10
  • Pricing
    Open source
  • Best for
    PHP projects needing CI-ready clone reports
  • Paid from
    Free
  • Clone detection method
    Token
  • Founded
    2026
  • Facts checked
    20 Sep 2026
phpcpd-next screenshot
  • Where it wins

    • Detects exact, reordered, gapped, and rename-insensitive clones
    • Supports caching, incremental indexing, SARIF, and CI exit codes
    • Integrates with GitHub Code Scanning, PHPUnit, and Laravel
  • Where it doesn't

    • Requires PHP 8.5 or newer
    • Does not offer IDE integration
    • Focused on PHP rather than multi-language repositories

Our verdict on phpcpd-next

phpcpd-next is an open-source command-line tool for detecting duplicated PHP code across repositories. It is aimed at PHP developers and teams that want clone analysis as part of CI, automated reporting, PHPUnit workflows, or Laravel projects. The tool supports PHP 8.5+ and provides a headless API alongside its command-line interface, making it suitable for repository-level checks rather than editor-based inspection.

Its detection coverage is broader than exact duplication alone. Rabin-Karp handles exact clones, while TokenBag supports reordered clones. An optional suffix-tree engine detects gapped clones, and rename-insensitive fuzzy matching identifies similar code despite changed names. Orphan detection adds visibility into unreferenced symbols. Results can be emitted as console output, PMD-CPD XML, JSON, or SARIF, with GitHub Code Scanning available as an integration. Caching, incremental indexing, and CI exit codes support repeatable automated scans without changing the tool's focused scope.

The project is distributed as open-source software through Composer and source installation, with no paid tier structure described. Its platform fit centers on an API and CI workflow: PHPUnit integration and a Laravel preset are useful for teams already working in those ecosystems, while the absence of IDE integration makes it less suited to developers who want clone feedback directly in an editor. Choose phpcpd-next when a PHP repository needs configurable token-based detection, machine-readable reports, and CI controls. Look elsewhere if IDE integration or support for languages beyond PHP is a requirement.

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

phpcpd-next pricing

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

phpcpd-next fact sheet

Free planNot verified
Paid fromFree
Clone detection methodToken
Scan scopeRepository
CI integrationYes
IDE integrationNo
Self-hosted optionYes
Supported languagesNot verified
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market (editorial estimate)
Integrations3 integrations: GitHub Code Scanning, PHPUnit, Laravel
PricingOpen source
Websitegithub.com
Facts checked20 Sep 2026

phpcpd-next integrations

phpcpd-next lists 3 integrations on its own site.

  • GitHub Code Scanning
  • PHPUnit
  • Laravel

Alternatives to phpcpd-next

See all phpcpd-next alternatives →

Also Ranked In

phpcpd-next is ranked in 2 of our directories.

Used phpcpd-next? 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 phpcpd-next 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 — phpcpd-next 8.1/10

phpcpd-next is listed in our Code Clone Detection Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/phpcpd-next/"><img src="https://www.itechguides.com/best/badge/phpcpd-next.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