{"id":19359902,"url":"https://github.com/codacy/codacy-duplication-phpcpd","last_synced_at":"2025-04-13T08:12:52.583Z","repository":{"id":49569359,"uuid":"52084838","full_name":"codacy/codacy-duplication-phpcpd","owner":"codacy","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-11T13:30:46.000Z","size":76,"stargazers_count":1,"open_issues_count":1,"forks_count":3,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-13T08:12:45.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codacy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-19T11:59:26.000Z","updated_at":"2024-05-29T20:17:53.000Z","dependencies_parsed_at":"2025-01-06T18:49:58.829Z","dependency_job_id":"49d4bab6-037b-4693-a537-8f7119147bcf","html_url":"https://github.com/codacy/codacy-duplication-phpcpd","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-duplication-phpcpd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-duplication-phpcpd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-duplication-phpcpd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codacy%2Fcodacy-duplication-phpcpd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codacy","download_url":"https://codeload.github.com/codacy/codacy-duplication-phpcpd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681495,"owners_count":21144700,"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-11-10T07:16:29.118Z","updated_at":"2025-04-13T08:12:52.558Z","avatar_url":"https://github.com/codacy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codacy-duplication-phpcpd\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/255bfb481d0742caac7c898f847baf5c)](https://www.codacy.com/gh/codacy/codacy-duplication-phpcpd?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=codacy/codacy-duplication-phpcpd\u0026amp;utm_campaign=Badge_Grade)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/255bfb481d0742caac7c898f847baf5c)](https://www.codacy.com/gh/codacy/codacy-duplication-phpcpd?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=codacy/codacy-duplication-phpcpd\u0026utm_campaign=Badge_Coverage)\n[![Build Status](https://circleci.com/gh/codacy/codacy-duplication-phpcpd.svg?style=shield\u0026circle-token=:circle-token)](https://circleci.com/gh/codacy/codacy-duplication-phpcpd)\n[![Docker Version](https://images.microbadger.com/badges/version/codacy/codacy-duplication-phpcpd.svg)](https://microbadger.com/images/codacy/codacy-duplication-phpcpd \"Get your own version badge on microbadger.com\")\n\nThis is the docker engine we use at Codacy to detect PHP code duplication using [PHPCPD](https://github.com/sebastianbergmann/phpcpd/).\n\n## Usage\n\nYou can create the docker by doing:\n\n```bash\nsbt docker:publishLocal\n```\n\nThe docker is ran with the following command:\n\n```bash\ndocker run -it -v $srcDir:/src  \u003cDOCKER_NAME\u003e:\u003cDOCKER_VERSION\u003e\ndocker run -it -v $PWD/src/test/resources:/src codacy/codacy-duplication-phpcpd:latest\n```\n\n## Test\n\nBefore running the tests, you need to install PHPCPD:\n  * Install php (make sure it is php7.1)\n  * Install [composer](https://getcomposer.org/download/)\n  * Install PHPCPD using: `composer global require \"sebastian/phpcpd=VERSION\"` (composer will also install required dependencies; for the VERSION value use the one encoded in the .phpcpd-version file)\n  * Make the `phpcpd command available in $PATH`\n  \nFor more information check out the tools [README](https://github.com/sebastianbergmann/phpcpd/blob/master/README.md).\n\nAfter that, you can run the tests:\n\n```bash\nsbt test\n```\n\n## What is Codacy\n\n[Codacy](https://www.codacy.com/) is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.\n\n### Among Codacy’s features\n\n* Identify new Static Analysis issues\n* Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)\n* Auto-comments on Commits and Pull Requests\n* Integrations with Slack, HipChat, Jira, YouTrack\n* Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories\n\nCodacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.\n\nCodacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.\n\n### Free for Open Source\n\nCodacy is free for Open Source projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodacy%2Fcodacy-duplication-phpcpd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodacy%2Fcodacy-duplication-phpcpd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodacy%2Fcodacy-duplication-phpcpd/lists"}