Download the PHP package imsus/laravel-imgproxy without Composer

On this page you can find all versions of the php package imsus/laravel-imgproxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-imgproxy

Analytics Pixel Laravel imgproxy banner

Laravel imgproxy

Latest Version on Packagist GitHub Tests Action Status Total Downloads

A Laravel package for imgproxy integration. Generate optimized, signed image URLs with a fluent API.

Use Case

Imagine you run an e-commerce platform with thousands of product images. Pages load slowly, cart abandonment rises, and hosting costs climb because every image is served at full resolution. The marketing team needs the same hero image in multiple aspect ratios for different campaigns, but waiting for designers to resize manually slows everything down.

This package solves both problems. Images are resized and compressed on-the-fly—thumbnail, medium, and hero versions generated from a single source. WebP and AVIF formats are served automatically based on browser support, reducing bandwidth by up to 50%. The fluent API lets you chain resizing, quality, and effects in a single readable line, so developers ship faster and users get faster pages.

Why This Package?

You can call imgproxy's raw API directly, but you'd repeat boilerplate code across every project: URL signing logic, configuration loading, enum types, validation, and error handling. This package wraps all that in a clean Laravel package. You get type-safe enums for resize modes and formats, fluent chainable methods that read like sentences, and Laravel-specific conveniences like facades, helpers, and Blade components. The 99.4% test coverage means you can trust it in production. If you're already using Laravel, this feels native—no learning curve, just imgproxy()->build() and you're done.

Features

Quick Glance

Helper Function

Facade

Blade Components

Laravel Storage Integration

Seamless integration with Laravel's Storage facade for both public and private disks:

The macro automatically detects disk visibility and generates the appropriate URLs (presigned URLs for private disks).

Quick Start

Prerequisites

Before using this package, you need to have imgproxy set up and running. You can either:

Make sure you have your imgproxy URL and signing credentials ready.

Installation

Documentation

Full documentation available at imsus.github.io/laravel-imgproxy:

Configuration

Publish the config file and configure via .env:

Option Description Default
IMGPROXY_ENDPOINT Your imgproxy server URL http://localhost:8080
IMGPROXY_KEY HMAC signing key null
IMGPROXY_SALT HMAC salt null
IMGPROXY_DEFAULT_SOURCE_URL_MODE Default source URL mode (encoded or raw) encoded
IMGPROXY_DEFAULT_OUTPUT_EXTENSION Default output format (jpeg, png, webp, avif, gif) jpeg
IMGPROXY_DEFAULT_GRAVITY Default gravity (ce, no, so, ea, we, ce, c, f) ce

If no key/salt is configured, URLs will be generated unsigned.

Generating Keys

Generate secure signing keys automatically:

This command generates 64-character hex strings for IMGPROXY_KEY and IMGPROXY_SALT, saves them to your .env file, and displays them in the console.

Troubleshooting

Signature verification failed

URLs not generating

Images loading slowly

Changelog

See CHANGELOG.md for version history and breaking changes.

Commands

License

MIT License. See LICENSE for details.

Laravel is a trademark of https://laravel.com/legal/trademark.

imgproxy is a trademark of https://imgproxy.net/.


All versions of laravel-imgproxy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.19
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package imsus/laravel-imgproxy contains the following files

Loading the files please wait ...