{"id":13505096,"url":"https://github.com/sebastianbergmann/phpcpd","last_synced_at":"2025-09-27T02:31:51.575Z","repository":{"id":487781,"uuid":"113874","full_name":"sebastianbergmann/phpcpd","owner":"sebastianbergmann","description":"Copy/Paste Detector (CPD) for PHP code.","archived":true,"fork":false,"pushed_at":"2023-01-10T12:50:42.000Z","size":46402,"stargazers_count":2215,"open_issues_count":0,"forks_count":190,"subscribers_count":67,"default_branch":"main","last_synced_at":"2024-09-15T21:28:22.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianbergmann.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"sebastianbergmann"}},"created_at":"2009-01-24T16:08:32.000Z","updated_at":"2024-09-15T16:15:16.000Z","dependencies_parsed_at":"2023-01-13T10:23:10.341Z","dependency_job_id":null,"html_url":"https://github.com/sebastianbergmann/phpcpd","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpcpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpcpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpcpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianbergmann%2Fphpcpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianbergmann","download_url":"https://codeload.github.com/sebastianbergmann/phpcpd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219418408,"owners_count":16485233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T00:00:58.388Z","updated_at":"2025-09-27T02:31:46.298Z","avatar_url":"https://github.com/sebastianbergmann.png","language":"PHP","readme":"**This project is no longer maintained and its repository is only kept for archival purposes.**\n\n# PHP Copy/Paste Detector (PHPCPD)\n\n`phpcpd` is a Copy/Paste Detector (CPD) for PHP code.\n\n## Installation\n\nThis tool is distributed as a [PHP Archive (PHAR)](https://php.net/phar):\n\n```bash\n$ wget https://phar.phpunit.de/phpcpd.phar\n\n$ php phpcpd.phar --version\n```\n\nUsing [Phive](https://phar.io/) is the recommended way for managing the tool dependencies of your project:\n\n```bash\n$ phive install phpcpd\n\n$ ./tools/phpcpd --version\n```\n\n**[It is not recommended to use Composer to download and install this tool.](https://twitter.com/s_bergmann/status/999635212723212288)**\n\n## Usage Example\n\n```\n$ php phpcpd.phar --fuzzy wordpress-5.5\nphpcpd 6.0.0 by Sebastian Bergmann.\n\nFound 121 clones with 8137 duplicated lines in 69 files:\n\n  - /home/sb/wordpress-5.5/wp-includes/sodium_compat/src/Core/Curve25519/H.php:19-1466 (1447 lines)\n    /home/sb/wordpress-5.5/wp-includes/sodium_compat/src/Core32/Curve25519/H.php:19-1466\n.\n.\n.\n  - /home/sb/wordpress-5.5/wp-includes/sodium_compat/src/Core32/Curve25519.php:879-889 (10 lines)\n    /home/sb/wordpress-5.5/wp-includes/sodium_compat/src/Core32/Curve25519.php:1072-1082\n\n1.82% duplicated lines out of 446676 total lines of code.\nAverage size of duplication is 67 lines, largest clone has 1447 of lines\n\nTime: 00:02.980, Memory: 318.00 MB\n```\n","funding_links":["https://github.com/sponsors/sebastianbergmann"],"categories":["Table of Contents","Standalone","代码分析","PHP","目录","Code Analysis","代码分析( Code Analysis )","类库","代码分析 Code Analysis"],"sub_categories":["Code Quality","Bugs finders","代码质量 Code Quality","未归类"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphpcpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbergmann%2Fphpcpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbergmann%2Fphpcpd/lists"}