PHPackages                             uiarts/proxy-image - 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. uiarts/proxy-image

ActiveLibrary

uiarts/proxy-image
==================

Proxy images

v1.2.1(1mo ago)010—0%MITPHP

Since Mar 18Pushed 1mo agoCompare

[ Source](https://github.com/UI-Arts/proxy-image)[ Packagist](https://packagist.org/packages/uiarts/proxy-image)[ RSS](/packages/uiarts-proxy-image/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Proxy Image Laravel Package
===========================

[](#proxy-image-laravel-package)

Пакет для проксування та обробки зображень (resize, crop, optimize) через підписані URL.

---

Встановлення
------------

[](#встановлення)

### 1. Додати пакет через Composer

[](#1-додати-пакет-через-composer)

```
composer require uiarts/proxy-image
```

---

### 2. Опублікувати конфіг

[](#2-опублікувати-конфіг)

```
php artisan vendor:publish --tag=proxy-image-config
```

---

### 3. Опублікувати entrypoint (images.php)

[](#3-опублікувати-entrypoint-imagesphp)

```
php artisan vendor:publish --tag=proxy-image-public
```

Після цього файл буде доступний:

```
public/images.php

```

---

Налаштування
------------

[](#налаштування)

В `.env` додай:

```
IMAGES_HMAC_SECRET=your-secret-key
IMAGES_DEFAULT_DISK=your_disk
IMAGES_LOCAL_DISK=your_disk
IMAGES_LOCAL_PREFIX=
IMAGES_S3_DISK=s3
IMAGES_S3_PREFIX=
```

Або відредагуй `config/proxy-image.php`.

---

Налаштування Nginx
------------------

[](#налаштування-nginx)

Додай у конфіг:

```
location ^~ /i/ {
    include fastcgi_params;

    fastcgi_pass php-fpm:9000;

    fastcgi_param SCRIPT_FILENAME $document_root/images.php;
    fastcgi_param SCRIPT_NAME /images.php;
    fastcgi_param REQUEST_URI $request_uri;
    fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
    add_header X-Images-Entrypoint 1 always;
}

if (!-e $request_filename) {
    rewrite ^.*$ /index.php last;
}
```

---

Формат URL
----------

[](#формат-url)

```
/i/{signature}/{ops}/{encoded}.{ext}

```

---

Приклад URL
-----------

[](#приклад-url)

```
https://example.com/i/{signature}/w:800/dXBsb2Fkcy90ZXN0LmpwZw.jpg

```

Приклад Використання
--------------------

[](#приклад-використання)

```
{!!
\UIArts\ProxyImage\Facades\ProxyImage::picture(
    pictures: 'uploads/image.jpg',
    sizes: [
        'mobile' => [300, 'a'], // [(int)width, (int|string)height] height - може бути або int або стрінг, але тільки "a", що означає auto
        'tablet' => [300, 'a'],
        'desktop' => [800, 'a'],
    ],
    class: 'picture-wrap', // class для
    attributes: [
        'mode' => 'fit', // fit, fill
        'quality' => 85,
        'densities' => [1, 2],
        'alt' => 'Some alt',
        'title' => 'Some title',
        'class' => 'img-fluid', // class для
        'data-zoom' => 'uploads/image.jpg',
        'data-error-src' => 'uploads/image.jpg',
        'loading' => 'lazy',
        'fetchPriority' => 'high', // high, low, auto
    ],
)
!!}

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7f6f4a286ba2135763d138e49c2007709f8e5c0144795dc4259fa8bb73b87a7?d=identicon)[rom\_moz](/maintainers/rom_moz)

---

Top Contributors

[![AlexHrabar](https://avatars.githubusercontent.com/u/34456105?v=4)](https://github.com/AlexHrabar "AlexHrabar (3 commits)")

### Embed Badge

![Health badge](/badges/uiarts-proxy-image/health.svg)

```
[![Health](https://phpackages.com/badges/uiarts-proxy-image/health.svg)](https://phpackages.com/packages/uiarts-proxy-image)
```

PHPackages © 2026

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