PHPackages                             sidus/perceptual-hash - 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. [Image &amp; Media](/categories/media)
4. /
5. sidus/perceptual-hash

ActiveLibrary[Image &amp; Media](/categories/media)

sidus/perceptual-hash
=====================

PHP library for perceptual image hashing

v1.0.0(1y ago)2255MITPHPPHP &gt;=7.4

Since Mar 10Pushed 1y ago2 watchersCompare

[ Source](https://github.com/VincentChalnot/perceptual-hash)[ Packagist](https://packagist.org/packages/sidus/perceptual-hash)[ Docs](https://github.com/VincentChalnot/perceptual-hash)[ RSS](/packages/sidus-perceptual-hash/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Perceptual Hash
===============

[](#perceptual-hash)

This library is a rewrite of the perceptual hash implementation by Anatoly Pashin (@b1rdex) for the jenssegers/imagehash library made by Jens Segers (@jenssegers). It provides a way to generate perceptual hashes for images using PHP.

Installation
------------

[](#installation)

To install the library, use Composer:

```
composer require sidus/perceptual-hash
```

Usage
-----

[](#usage)

Here is a simple example of how to generate perceptual hashes for images:

```
$manager = new \Intervention\Image\ImageManager($driver);
$image = $manager->make($imagePath);
$hash = PerceptualHash::hash($image);
```

And to compare two hashes:

```
$distance = PerceptualHash::distance($hash1, $hash2);
```

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance44

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d58f1d81808beea6dab7aec03b0268082fe12bf46c852f14d98d7b900ea1304?d=identicon)[VincentChalnot](/maintainers/VincentChalnot)

---

Top Contributors

[![VincentChalnot](https://avatars.githubusercontent.com/u/1535893?v=4)](https://github.com/VincentChalnot "VincentChalnot (1 commits)")

---

Tags

hashimagehashperceptualdhashahashphashimage hash

### Embed Badge

![Health badge](/badges/sidus-perceptual-hash/health.svg)

```
[![Health](https://phpackages.com/badges/sidus-perceptual-hash/health.svg)](https://phpackages.com/packages/sidus-perceptual-hash)
```

###  Alternatives

[jenssegers/imagehash

Perceptual image hashing for PHP

2.1k2.2M5](/packages/jenssegers-imagehash)[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k51.2M116](/packages/league-glide)[yzalis/identicon

Generate unique identicon avatars from any string

5901.1M21](/packages/yzalis-identicon)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[lasserafn/php-initial-avatar-generator

A package to generate avatars with initials for PHP

4374.2M13](/packages/lasserafn-php-initial-avatar-generator)

PHPackages © 2026

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