onliner/imgproxy-php
PHP client for imgproxy that builds signed and unsigned image URLs through a fluent, chainable API. Supports resizing, cropping, gravity, format conversion, and Laravel integration, letting you serve optimized, secure images from your own imgproxy instance.
srcset generation, resize/crop/format conversion (WebP/AVIF), quality tuning, and watermarking without building a media-processing service or writing files to disk at upload time.Consider it when:
srcset variants) rather than string concatenation scattered through Blade templates and models.Look elsewhere when:
Adoption caveats to weigh: low star count means limited real-world battle-testing and a bus-factor of one. Mitigate by pinning the version, wrapping it behind your own small adapter/facade so it's swappable, and keeping in mind that the imgproxy URL spec is public — reimplementing the signer in-house is on the order of a day's work if the package is abandoned. That is the strongest argument for tolerance here: the exit cost is low.
For executives (the business case):
We're evaluating a small open-source PHP helper that lets us serve optimized, securely signed images from our own infrastructure instead of a per-image SaaS. The upside is cost control — image transformation and delivery is typically priced per transform or per gigabyte, and that bill scales with catalog size and traffic. Self-hosting the processor plus handling URL signing in our app keeps that cost predictable and puts caching behind our existing CDN. The security angle matters too: signed URLs stop the public from asking our servers to generate arbitrary image sizes, which is a quiet but real denial-of-service and compute-cost exposure. The package itself is a thin MIT-licensed utility, low-risk to adopt and cheap to replace if needed — the real commitment is operational (running an image service), which is the decision to focus on.
For engineering (the practical summary):
Bottom line for the group: this is a small, cheap, easily-reversible enabler for a larger decision — whether to own our image pipeline. Evaluate the pipeline decision first; if that's yes, this is a reasonable way to avoid writing signing code ourselves.
How can I help you explore Laravel packages today?