PHPackages                             twigmac/remove-duplicate-files - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. twigmac/remove-duplicate-files

ActiveLibrary[CLI &amp; Console](/categories/cli)

twigmac/remove-duplicate-files
==============================

Recursively remove duplicate files on the command line.

v1.0.4(1y ago)03GPL-3.0+PHPPHP &gt;=8.2

Since Nov 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/twigmac/remove-duplicate-files)[ Packagist](https://packagist.org/packages/twigmac/remove-duplicate-files)[ Docs](https://github.com/twigmac/remove-duplicate-files)[ RSS](/packages/twigmac-remove-duplicate-files/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

[![build status](https://github.com/twigmac/remove-duplicate-files/actions/workflows/build-workflow.yml/badge.svg)](https://github.com/twigmac/remove-duplicate-files/actions/workflows/build-workflow.yml/badge.svg) [![release status](https://github.com/twigmac/remove-duplicate-files/actions/workflows/release-workflow.yml/badge.svg)](https://github.com/twigmac/remove-duplicate-files/actions/workflows/release-workflow.yml/badge.svg)

Remove Duplicate Files
======================

[](#remove-duplicate-files)

Recursively find and remove duplicate files on the command line.

Requirements
------------

[](#requirements)

You will need PHP 8.2 or higher to run the script.

Standalone Usage
----------------

[](#standalone-usage)

Use either of the following commands to get usage instructions.

```
# use the entrypoint script
bin/remove-duplicate-files --help

# use the Phar file
bin/remove-duplicate-files.phar --help

```

Usage as Vendor Package
-----------------------

[](#usage-as-vendor-package)

When using it as a vendor package, first install it.

```
composer require twigmac/remove-duplicate-files

```

After installing the package, you can run the binary from the vendor directory.

```
vendor/bin/remove-duplicate-files --help

```

Usage Examples
--------------

[](#usage-examples)

```
# This will find up to 100 duplicate files in the second directory but will not remove anything (dry-run).
bin/remove-duplicate-files --verbose /home/example/Downloads/Photos /home/example/Backups/Photos

# This will remove up to 5000 duplicate files in the second directory and will keep them in the first directory
# but it will ask you for permission before each file.
bin/remove-duplicate-files --verbose --limit=5000 --really /home/example/Downloads/Photos /home/example/Backups/Photos

# This will remove up to 5000 duplicate files in the second directory and will keep them in the first directory
# without asking for permission.
bin/remove-duplicate-files --verbose --limit=5000 --really --force /home/example/Downloads/Photos /home/example/Backups/Photos

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d786b4815d1f9b3d5117de3c06fc101b2aba2231673d5eb7cf280af456110f8e?d=identicon)[twigmac](/maintainers/twigmac)

---

Top Contributors

[![twigmac](https://avatars.githubusercontent.com/u/5116050?v=4)](https://github.com/twigmac "twigmac (12 commits)")

---

Tags

cliconsolecommand-linehelperfile

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/twigmac-remove-duplicate-files/health.svg)

```
[![Health](https://phpackages.com/badges/twigmac-remove-duplicate-files/health.svg)](https://phpackages.com/packages/twigmac-remove-duplicate-files)
```

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[splitbrain/php-cli

Easy command line scripts for PHP with opt parsing and color output. No dependencies

177817.2k28](/packages/splitbrain-php-cli)[laminas/laminas-cli

Command-line interface for Laminas projects

563.7M54](/packages/laminas-laminas-cli)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
