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

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

canerdogan/imgproxy
===================

Laravel Service Provider for imgproxy: Resize your images instantly and securely

v1.0.4(5y ago)02.2kMITPHPPHP &gt;=7.0

Since Jan 9Pushed 5y agoCompare

[ Source](https://github.com/canerdogan/imgproxy)[ Packagist](https://packagist.org/packages/canerdogan/imgproxy)[ Docs](https://github.com/canerdogan/imgproxy)[ RSS](/packages/canerdogan-imgproxy/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (5)Versions (18)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/61c9aa761bcddf0dcd07776a41a0a473900c156d8e46176150321b0912e48457/68747470733a2f2f706f7365722e707567782e6f72672f63616e6572646f67616e2f696d6770726f78792f762f737461626c65)](https://packagist.org/packages/canerdogan/imgproxy)[![Total Downloads](https://camo.githubusercontent.com/90c4a9ff778538cd40b478316cf6bea8ca3241181d5fe9d7278d9b3fc83175ac/68747470733a2f2f706f7365722e707567782e6f72672f63616e6572646f67616e2f696d6770726f78792f646f776e6c6f616473)](https://packagist.org/packages/canerdogan/imgproxy)

img-proxy
=========

[](#img-proxy)

Laravel Service Provider for Golang ImgProxy micro-service

Install
-------

[](#install)

Works with Laravel 5.1 - 5.7 / PHP 7.0 - 7.2, probably 7.3 too

- `composer require canerdogan/imgproxy`
- copy the ServiceProvider to the providers array in config/app.php. Laravel 5.5 users with auto-discovery may skip this step

```
CanErdogan\ImgProxy\ImgProxyServiceProvider::class,
```

- copy the package config to your local config with the publish command:

```
php artisan vendor:publish --provider="CanErdogan\\ImgProxy\\ImgProxyServiceProvider"
```

- to generate the secrets, you can use this command: `echo $(xxd -g 2 -l 64 -p /dev/random | tr -d '\n')`
- env file:

```
# img-proxy.base_url
IMGPROXY_URL=https://img-proxy-example.com
# your img-proxy key
IMGPROXY_KEY=943b421c9eb07c830af81030552c86009268de4e532ba2ee2eab8247c6da0881
# your img-proxy salt
IMGPROXY_SALT=520f986b998545b4785e0defbc4f3c1203f22de2374a3d53cb7a7fe9fea309c5
```

**This package does not cover** the `Authorization` header.

Usage
-----

[](#usage)

helper:

```
imgProxy('https://www.nasa.gov/sites/default/files/images/528131main_PIA13659_full.jpg', 640, 360)
```

```
use CanErdogan\ImgProxy\Contracts\ImageSignatureInterface;
use CanErdogan\ImgProxy\Image;

Route::get('/img-test', function () {
    $path      = 'https://www.nasa.gov/sites/default/files/images/528131main_PIA13659_full.jpg';
    $width     = 640;
    $height    = 360;
    $pic       = new Image;
    $pic->setOriginalPictureUrl($path)
        ->setWidth($width)
        ->setHeight($height)
        ->setResize('fit')
        ->setGravity('no')
        ->setEnlarge(0)
        ->setExtension('png');
    app()->instance(Image::class, $pic);
    $signature = app(ImageSignatureInterface::class);

    echo '
    Resized:

    Original:
    ';

});
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~73 days

Recently: every ~194 days

Total

17

Last Release

1871d ago

Major Versions

v0.0.12 → 1.0.02019-02-10

### Community

Maintainers

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

---

Top Contributors

[![route33](https://avatars.githubusercontent.com/u/81183127?v=4)](https://github.com/route33 "route33 (28 commits)")[![Assmay](https://avatars.githubusercontent.com/u/18699209?v=4)](https://github.com/Assmay "Assmay (4 commits)")[![canerdogan](https://avatars.githubusercontent.com/u/620056?v=4)](https://github.com/canerdogan "canerdogan (1 commits)")

---

Tags

laravelproxyimageresizemicro serviceimgproxy

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

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

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[onliner/imgproxy-php

ImgProxy url builder for PHP

26186.9k4](/packages/onliner-imgproxy-php)[ayvazyan10/nova-imagic

Imagic is a Laravel Nova field package that allows for image manipulation capabilities, such as cropping, resizing, quality adjustment, and WebP conversion. It utilizes the powerful Intervention Image class for image manipulation.

144.3k1](/packages/ayvazyan10-nova-imagic)[spescina/imgproxy

An image proxy for Laravel

201.3k](/packages/spescina-imgproxy)[somehow-digital/typo3-media-processing

Media Processing

101.1k](/packages/somehow-digital-typo3-media-processing)

PHPackages © 2026

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