PHPackages                             motniemtin/phash - 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. motniemtin/phash

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

motniemtin/phash
================

Find similar images percent

07PHP

Since May 2Pushed 7y agoCompare

[ Source](https://github.com/motniemtin/Phash)[ Packagist](https://packagist.org/packages/motniemtin/phash)[ RSS](/packages/motniemtin-phash/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

pHash, Find Image simimar percent for Laravel, php &gt;7
========================================================

[](#phash-find-image-simimar-percent-for-laravel-php-7)

**sample code**use Motniemtin/pHash/pHash; #sample implementation

```
$phasher = new pHash;
$phash2 = $phasher->getHash('phash2.jpg', false);
//this will echo hash in hex, then binary
echo $phasher->hashAsString($phash2, false).PHP_EOL;
echo $phasher->hashAsString($phash2).PHP_EOL;
$phash3 = $phasher->getHash('phash3.jpg', false);
//this will echo hash in hex, then binary
echo $phasher->hashAsString($phash3, false).PHP_EOL;
echo $phasher->hashAsString($phash3).PHP_EOL;
//using BIT COUNT METHOD FOR SIMILARITY
echo $phasher->getSimilarity($phash2, $phash3, 'BITS');
echo PHP_EOL;
//using HAMMING METHOD (DEFAULT) FOR SIMILARITY
echo $phasher->getSimilarity($phash2, $phash3);
echo PHP_EOL;

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7120dbd9a63cdbd896f9bef1fdf877291d4db838a5296ed5e524b9301eecb7f2?d=identicon)[motniemtin](/maintainers/motniemtin)

---

Top Contributors

[![motniemtin](https://avatars.githubusercontent.com/u/23047848?v=4)](https://github.com/motniemtin "motniemtin (6 commits)")

### Embed Badge

![Health badge](/badges/motniemtin-phash/health.svg)

```
[![Health](https://phpackages.com/badges/motniemtin-phash/health.svg)](https://phpackages.com/packages/motniemtin-phash)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

133890.0k3](/packages/goat1000-svggraph)[imagekit/imagekit

PHP library for Imagekit

46877.3k10](/packages/imagekit-imagekit)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

12644.1k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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