travail/image-perceptualhash
Generate perceptual hashes from images and compare them by Hamming distance to spot duplicates and visually similar pictures. Integrates with Laravel and Eloquent for storing hashes and finding near matches in your app.
Consider it when:
Look elsewhere when:
Executive summary: This package enables a fast, low-cost experiment for duplicate and near-duplicate image detection—useful for reducing storage waste, improving marketplace integrity, and testing trust-and-safety workflows. It is not a long-term platform bet: the project is old, has very low adoption, and appears unmaintained. Recommend a time-boxed spike behind an internal abstraction, with a build-vs-buy decision based on measured accuracy and volume needs.
Engineering summary: Treat it as a small pHash utility, not a Laravel-native solution. Wrap it in a service, add tests, verify PHP/ImageMagick compatibility, and plan to fork or replace it. If the feature proves valuable, migrate to a maintained library or managed image-similarity service rather than expanding dependence on this package.
How can I help you explore Laravel packages today?