leovie / php-dry
Detect clones in php code.
v1.7.7
2022-06-29 07:44 UTC
Requires
- php: >=8.0.0
- ext-ctype: *
- ext-dom: *
- ext-iconv: *
- ext-mbstring: *
- leovie/php-construct-normalize: ^2.0
- leovie/php-filesystem: ^2.0
- leovie/php-grouper: ^2.0
- leovie/php-method-modifier: ^2.0
- leovie/php-method-runner: ^2.0
- leovie/php-param-generator: ^2.0
- leovie/php-token-normalize: ^2.0
- nikic/php-parser: ^4.13
- phpdocumentor/type-resolver: ^1.6
- symfony/console: ^6.0
- symfony/css-selector: ^6.0
- symfony/dom-crawler: ^6.0
- symfony/dotenv: ^6.0
- symfony/flex: ^2.1
- symfony/framework-bundle: ^6.0
- symfony/runtime: ^6.0
- symfony/stopwatch: ^6.0
- symfony/yaml: ^6.0
- thecodingmachine/safe: ^2.2
- twig/twig: ^3.4
Requires (Dev)
- ext-libxml: *
- ergebnis/composer-normalize: ^2.26
- infection/infection: ^0.26.6
- jetbrains/phpstorm-attributes: ^1.0
- phpunit/phpunit: ^9.5
- psalm/plugin-symfony: ^3.1
- roave/security-advisories: dev-latest
- vimeo/psalm: ^4.10
Conflicts
Replaces
This package is auto-updated.
Last update: 2026-05-28 02:29:55 UTC
README
php-dry detects duplicated behaviour in your application, even if the duplicated passages are implemented completely different to each other. Likely you should read a bit about the theoretical background for a better understanding.
Run via Docker (recommended)
docker run -v {path_to_project}:/project leovie/php-dry -h
Run via binary
Install via composer
composer require --dev leovie/php-dry
After installation, you can run php-dry via
vendor/bin/php-dry {path_to_project} -h
Documentation
see here
Thanks
Special thank you belongs to queo GmbH for sponsoring the development and maintenance of php-dry.