PHP Classes

PHP Duplicate Files Finder: Find files with the same contents

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 906 All time: 3,918 This week: 45Up
Version License PHP version Categories
duplicate-files-find 1Free for non-comm...5PHP 5, Tools, Files and Folders
Description 

Author

This class can be used to find files with the same contents.

It can traverse a given directory recursively and compute the MD5 hash of all the files that it finds.

The class returns the list of files that have the same contents based on having the same MD5 hash value.

Innovation Award
PHP Programming Innovation award nominee
May 2010
Number 5
Some times you have multiple copies of the same files, probably in different directories, that you would like to find in order to eliminate the copies.

This class implements an efficient solution to find files with duplicated content. It uses MD5 hashes to determine which files have the same contents.

Manuel Lemos
Picture of Er. Rochak Chauhan
  Performance   Level  
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

 

  Files folder image Files (2)  
File Role Description
Plain text file phpDuplicateFilesFinder.php Class Class
Accessible without login Plain text file usage.php Example Example Script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:906
This week:0
All time:3,918
This week:45Up
User Ratings User Comments (3)
 All time
Utility:85%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:80%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1368
 
Changed the parseDirectory function to : function parseDirect...
8 years ago (Felix Mrdx)
52%StarStarStar
Great and effective tool which really helped me with my tasks.
11 years ago (Maciej Naumienko)
67%StarStarStarStar
This is a good class ! lol
14 years ago (José Filipe Lopes Santos)
70%StarStarStarStar