Maxim Khimusov

Showcase: I built Dedupler - tool prevents duplicate files

by

The Problem: Users upload the same file multiple times, storage gets bloated, backups grow unnecessarily.

The Solution: I built Dedupler - Laravel package that automatically prevents duplicate (https://github.com/maxkhim/laravel-storage-dedupler) file storage using SHA-1 hashing.

How it works:

- Every file gets a SHA-1 hash fingerprint

- Only one physical copy is stored

- Polymorphic relationships allow attachment to any model

- Returns existing file record when duplicate detected

Check potential disk space savings

If you install in legacy project you can calculate efficiency of using the package via command

php artisan dedupler:analyse-legacy /absolute/path/to/legacy/storage/directory

Special Offer: First 5 quality Issue reports will get special mention in the Release Notes!

Your contribution will be permanently visible to all package users with a link to your GitHub profile.

84 views

Add a comment

Replies

Best
Martin Tonev

Hey, that is interesting. I will definitely use it in my projects

Maxim Khimusov

@microdesignn Thank you so much! I'm so glad to hear this might be useful for your projects. If you encounter any issues or have any suggestions for usage, please feel free to create an issue on GitHub. Feedback from real users is incredibly inspiring and valuable for improving the package!