PHPackages                             onliner/imgproxy-php - 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. onliner/imgproxy-php

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

onliner/imgproxy-php
====================

ImgProxy url builder for PHP

v0.2.6(4mo ago)25235.7k↓34.4%53MITPHPPHP ^8.0CI passing

Since Jul 14Pushed 4mo ago9 watchersCompare

[ Source](https://github.com/onliner/imgproxy-php)[ Packagist](https://packagist.org/packages/onliner/imgproxy-php)[ RSS](/packages/onliner-imgproxy-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (6)Versions (12)Used By (3)

### ImgProxy PHP

[](#imgproxy-php)

This is a PHP library that makes it easy to build URL for [ImgProxy](https://imgproxy.net).

[![Version](https://camo.githubusercontent.com/5fa1b4e14ce12343b4f03d80a26e2c2a0678fc227ca9816f33ac80f8c29d3152/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e6c696e65722f696d6770726f78792d7068702e737667)](https://packagist.org/packages/onliner/imgproxy-php)[![Total Downloads](https://camo.githubusercontent.com/e8dd517ea7d10fd9e391a2c8f960b1213725e63579339b9a5c96b4f2767e1578/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6c696e65722f696d6770726f78792d7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/onliner/imgproxy-php)[![Php](https://camo.githubusercontent.com/b8a795120c5532cd2ac4abba74592c798be1eef6dfb123f81e8792b8fea4c84b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302b2d627269676874677265656e2e737667)](https://www.php.net/)[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Build Status](https://github.com/onliner/imgproxy-php/workflows/test/badge.svg)](https://github.com/onliner/imgproxy-php/actions?workflow=test)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require onliner/imgproxy-php:^0.2

```

or add this code line to the `require` section of your `composer.json` file:

```
"onliner/imgproxy-php": "^0.2"

```

Usage
-----

[](#usage)

```
$key = getenv('IMGPROXY_KEY');
$salt = getenv('IMGPROXY_SALT');

$src = 'http://example.com/image.jpg';

$builder = UrlBuilder::signed($key, $salt);
$builder = $builder->with(
    new Dpr(2),
    new Quality(90),
    new Width(300),
    new Height(400)
);

$url = $builder->url($src);  // encoded url
$url = $builder->encoded(false)->url($src); // plain url
$url = $builder->url($src, 'png'); // change image format

# example: /9SaGqJILqstFsWthdP/dpr:2/q:90/w:300/h:400/aHR0cDovL2V4YW1w/bGUuY29tL2ltYWdl/LmpwZw
```

License
-------

[](#license)

Released under the [MIT license](LICENSE).

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance75

Regular maintenance activity

Popularity46

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.8% 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 ~215 days

Recently: every ~147 days

Total

9

Last Release

138d ago

PHP version history (2 changes)v0.1.0PHP ^7.2 || ^8.0

v0.2.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4974062?v=4)[Alexander Mohorev](/maintainers/mohorev)[@mohorev](https://github.com/mohorev)

![](https://avatars.githubusercontent.com/u/66942373?v=4)[Onliner](/maintainers/onliner)[@onliner](https://github.com/onliner)

---

Top Contributors

[![mohorev](https://avatars.githubusercontent.com/u/4974062?v=4)](https://github.com/mohorev "mohorev (28 commits)")[![oprypkhantc](https://avatars.githubusercontent.com/u/54406427?v=4)](https://github.com/oprypkhantc "oprypkhantc (2 commits)")[![akarashchuk](https://avatars.githubusercontent.com/u/15956414?v=4)](https://github.com/akarashchuk "akarashchuk (1 commits)")[![dcanob](https://avatars.githubusercontent.com/u/7740721?v=4)](https://github.com/dcanob "dcanob (1 commits)")[![Olden](https://avatars.githubusercontent.com/u/546682?v=4)](https://github.com/Olden "Olden (1 commits)")

---

Tags

image-processingimage-proxyimgproxyphpimageresizeimgproxyimageproxy

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/onliner-imgproxy-php/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.4k214.2M2.8k](/packages/intervention-image)[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k6.1M72](/packages/gumlet-php-image-resize)[sybio/image-workshop

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

876953.8k12](/packages/sybio-image-workshop)[masterexploder/phpthumb

A library for manipulating images in PHP.

966774.9k17](/packages/masterexploder-phpthumb)[intervention/image-laravel

Laravel Integration of Intervention Image

1589.8M226](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506520.9k31](/packages/bkwld-croppa)

PHPackages © 2026

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