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

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

hosmelq/laravel-imgproxy
========================

Build imgproxy URLs in Laravel with optional encryption and signing.

v1.0.0(5mo ago)02.6k↓49%MITPHPPHP ^8.3CI passing

Since Dec 4Pushed 5mo agoCompare

[ Source](https://github.com/hosmelq/laravel-imgproxy)[ Packagist](https://packagist.org/packages/hosmelq/laravel-imgproxy)[ RSS](/packages/hosmelq-laravel-imgproxy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (20)Versions (2)Used By (0)

Laravel imgproxy
================

[](#laravel-imgproxy)

Build imgproxy URLs in Laravel with optional encryption and signing.

Introduction
------------

[](#introduction)

Build imgproxy URLs from Laravel with every documented option (free and pro). Grab a builder from the facade for external sources, or call the `imgproxy` disk macro when you want to start from storage paths.

```
use HosmelQ\Imgproxy\Laravel\Facades\Imgproxy;
use HosmelQ\Imgproxy\ResizingType;

$url = Imgproxy::builder()
    ->format(extension: 'png')
    ->resize(type: ResizingType::Fit, width: 1200, height: 630)
    ->build(sourceUrl: 'https://example.com/image.jpg');
```

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11+
- OpenSSL extension (for source encryption)

Installation &amp; setup
------------------------

[](#installation--setup)

Install via Composer:

```
composer require hosmelq/laravel-imgproxy
```

### Publishing the config file

[](#publishing-the-config-file)

Optionally publish the config file:

```
php artisan vendor:publish --tag="imgproxy-config"
```

View the published config file.```
