Download the PHP package hosmelq/imgproxy without Composer
On this page you can find all versions of the php package hosmelq/imgproxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hosmelq/imgproxy
More information about hosmelq/imgproxy
Files in hosmelq/imgproxy
Package imgproxy
Short Description Build imgproxy URLs in PHP with optional encryption and signing.
License MIT
Informations about the package imgproxy
imgproxy PHP
Build imgproxy URLs in PHP with optional encryption and signing.
Introduction
This package generates imgproxy URLs with every documented option (free and pro) and signs requests when you provide a key/salt pair. Long option names are emitted by default, and you can switch to the short aliases that imgproxy supports.
Requirements
- PHP 8.3+
- OpenSSL extension (for source encryption)
Installation & setup
Install via Composer:
Basic usage
Getting started
Create a builder with your base URL and optional signing key/salt. Configure processing options fluently, then build the URL for a source image.
Switch to short option names if you want more compact URLs:
Source encoding choices
Base64 is the default. You can output plain or encrypted sources when needed:
Signing and truncation
Provide both key and salt to enable signing, optionally truncate the signature to match your imgproxy config:
Advanced usage
Custom IV generator for encrypted sources
Pass your own IV generator to withEncryptionKey when you need a specific IV strategy (for example, to align with another language implementation):
Testing
Deployments
Want a ready-to-run imgproxy instance? Use the Railway template:
Changelog
Please see CHANGELOG.md for recent changes.
Credits
- Hosmel Quintana
- All Contributors
License
The MIT License (MIT). Please see LICENSE.md for more information.