Download the PHP package elgentos/imgproxy-php without Composer
On this page you can find all versions of the php package elgentos/imgproxy-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package imgproxy-php
URL generator for darthsim/imgproxy
See https://github.com/DarthSim/imgproxy.
STARTING FROM v2.0 imgproxy-php supports advanced URL generation. See below.
imgproxy-php v2.0 is fully backwards compatible with v1.0, you should not have any issues with upgrading.
If those issues still occur with you, you're welcome to file a bug report, and even more welcome to create a pull request.
This is a small package which allows for generating URLs for your images that are resized by imgproxy:
(*) default settings:
- Mode: basic (apparently, basci mode is deprecated by imgproxy and possibly will be removed in future release)
- Fit: fit
- Gravity: sm (smart)
-
Enlarge: 0 (do not enlarge images)
Please refer to imgproxy docs for parameter descriptions and possible values.
Imgproxy PRO features
Certain features of Imgproxy are only available in the PRO
version. Please refer to the docs https://docs.imgproxy.net/generating_the_url_advanced and make notice of the PRO
label on certain processing options. Using those options on a regular (non-PRO) instance of Imgproxy will result in "Invalid URL" response.
Testing in "real life"
In the root folder you will find docker-compose.yml
file which will start imgproxy
instance on port 8080. There is also a composer script generate
with parameters:
- base : string base URL
- key : string IMGPROXY_KEY
- salt : string IMGPROXY_SALT
- source : string source image URL
- width : int width
- height : int height
- advanced (no value required)
Once you started your local docker-compose stack with docker-compose up
, you may call this script with the
following command:
Hear, the KEY & SALT are valid for the imgproxy instance started by provided docker-compose.yml
.
You can also test URL generation for arbitrary custom imgproxy installation by providing relevant base
, key
& salt
. Happy testing!