PHPackages                             somehow-digital/imgproxy - 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. somehow-digital/imgproxy

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

somehow-digital/imgproxy
========================

v1.0.0(4mo ago)1907↑271.4%[1 issues](https://github.com/somehow-digital/php-imgproxy/issues)[3 PRs](https://github.com/somehow-digital/php-imgproxy/pulls)1MITPHP

Since Feb 20Pushed 6d ago1 watchersCompare

[ Source](https://github.com/somehow-digital/php-imgproxy)[ Packagist](https://packagist.org/packages/somehow-digital/imgproxy)[ RSS](/packages/somehow-digital-imgproxy/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (1)

imgproxy URL Builder for PHP
============================

[](#imgproxy-url-builder-for-php)

`imgproxy` URL Builder is a PHP library for generating [imgproxy](https://imgproxy.net/)URLs in a type-safe, immutable, and composable way.

Features
--------

[](#features)

- Immutable URL builder object
- Fluent API via method chaining
- Extensible test suite
- Supports all `imgproxy` options
- Supports `imgproxy` chained pipelines
- Supports `imgproxy` source URL masking
- Supports `imgproxy` URL signing

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

[](#installation)

```
composer require somehow-digital/imgproxy
```

Usage
-----

[](#usage)

**Basic URL**

```
use SomehowDigital\ImgProxy\Url;

$url = new Url();

$url = $url->source('https://example.com/image.jpg');

$url = $url->options(
    new Width(100),
    new Height(100),
);

$url->build(); // _/w:100/h:100/plain/https%3A%2F%2Fexample.com%2Fimage.jpg
```

**Chained pipeline**

```
use SomehowDigital\ImgProxy\Url;

$url = new Url();

$url = $url->source('https://example.com/image.jpg');

$url = $url->options(
    new Crop(1000, 1000),
    [
        new Width(100),
        new Height(100),
    ],
);

$url->build(); // _/c:1000:1000/-/w:100/h:100/plain/https%3A%2F%2Fexample.com%2Fimage.jpg
```

**Base64-Encoded Source URL**

```
use SomehowDigital\ImgProxy\Url;

$url = new Url(
    new EncodingMasker(),
);

$url = $url->source('https://example.com/image.jpg');

$url = $url->options(
    new Width(100),
    new Height(100),
);

$url->build(); // _/w:100/h:100/aHR0cHM6Ly9leGFtcGxlLmNvbS9pbWFnZS5qcGc
```

**HMAC-Encrypted Source URL**

```
use SomehowDigital\ImgProxy\Url;

$url = new Url(
    new EncryptionMasker(ENCRYPTION_KEY),
);

$url = $url->source('https://example.com/image.jpg');

$url = $url->options(
    new Width(100),
    new Height(100),
);

$url->build(); // _/w:100/h:100/enc/p5VjorNdhs7mRRw8.jpg
```

**Signed URL**

```
use SomehowDigital\ImgProxy\Url;

$url = new Url(
    new EncryptionMasker(ENCRYPTION_KEY),
    new Signer(SIGNATURE_KEY, SIGNATURE_SALT),
);

$url = $url->source('https://example.com/image.jpg');

$url = $url->options(
    new Width(100),
    new Height(100),
);

$url->build(); // oKfUtW34Dvo2BGQe/w:100/h:100/enc/p5VjorNdhs7mRRw8.png
```

**Fluent API**

```
use SomehowDigital\ImgProxy\Url;

$url = Url::create(
    new EncryptionMasker(ENCRYPTION_KEY),
    new Signer(SIGNATURE_KEY, SIGNATURE_SALT),
)
->source('https://example.com/image.png')
->options(
    new Width(100),
    new Height(100),
)
->build(); // oKfUtW34Dvo2BGQe/w:100/h:100/enc/p5VjorNdhs7mRRw8.png
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance69

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% 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

132d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38b23f01c936315db03de52b789382c879f7471302f2692f5cfd55454147e553?d=identicon)[thasmo](/maintainers/thasmo)

---

Top Contributors

[![thasmo](https://avatars.githubusercontent.com/u/184284?v=4)](https://github.com/thasmo "thasmo (9 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/somehow-digital-imgproxy/health.svg)

```
[![Health](https://phpackages.com/badges/somehow-digital-imgproxy/health.svg)](https://phpackages.com/packages/somehow-digital-imgproxy)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

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

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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