PHPackages                             eb/screenpiece - 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. eb/screenpiece

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

eb/screenpiece
==============

0.4(9y ago)0325.2k↓38.8%UNLICENSEPHPCI failing

Since Dec 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/EgorBanin/screenpiece)[ Packagist](https://packagist.org/packages/eb/screenpiece)[ RSS](/packages/eb-screenpiece/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Screenpiece
===========

[](#screenpiece)

```
$googleScreen = new Screen(
	GDImg::fromPath(__DIR__.'/tests/data/googleSample.png'),
	['Google logo' => new Piece([10, 10, 230, 100], [], 0)]
);
$screenshot = GDImg::fromPath(__DIR__.'/tests/data/googleScreenshot.png');
var_dump($googleScreen->equal($screenshot));
var_dump($googleScreen->piecePresent('Google logo', $screenshot));
```

```
$screenshot = GDImg::fromPath(__DIR__.'/data/google1.png');
$logo = GDImg::fromPath(__DIR__.'/data/googleLogo.png');
$pos = Utils::search($screenshot, $logo)();
var_dump($pos);
```

example.php

```
docker-compose -f ./docker/docker-compose.yml run --rm php php app/example.php

```

тесты

```
docker-compose -f ./docker/docker-compose.yml run --rm php bash app/vendor/bin/phpunit -c app/tests/phpunit.xml app/tests

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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

Every ~28 days

Total

5

Last Release

3323d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c72e0a2c1463045e91c5007630d11f2666c55586a803e14b292a38add1bd65ae?d=identicon)[EgorBanin](/maintainers/EgorBanin)

---

Top Contributors

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

---

Tags

searchgdscreeshot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eb-screenpiece/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.3k194.3M2.2k](/packages/intervention-image)[league/glide

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

2.6k51.2M116](/packages/league-glide)[gregwar/image

Image handling

1.0k4.1M51](/packages/gregwar-image)[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6038.1M54](/packages/rosell-dk-webp-convert)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860918.1k11](/packages/sybio-image-workshop)[intervention/image-laravel

Laravel Integration of Intervention Image

1536.5M102](/packages/intervention-image-laravel)

PHPackages © 2026

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