Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Imgproxy Laravel Package

hosmelq/imgproxy

A Laravel package for generating signed imgproxy URLs on the fly. Configure presets, resizing, cropping, and format options, then build secure image transformation links from a fluent API for models or storage disks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for image delivery: imgproxy is a self-hosted, Go-based image resizing/transformation service. This package is a thin PHP SDK whose only job is to construct correctly signed/encrypted imgproxy URLs, so the real "build vs. buy" decision is about running imgproxy itself, not this library. Treat the package as a small implementation accelerator, not a vendor commitment.
  • Offloading image processing from the app tier: Helps you decide to stop doing thumbnail generation, cropping, format negotiation (AVIF/WebP), and resizing inside PHP workers or queue jobs. Shifting that to imgproxy removes CPU/memory pressure, storage duplication, and cache-invalidation logic from the application.
  • Roadmap timing for responsive/derived images: Enables features like responsive srcset generation, on-the-fly social preview images, user-uploaded avatar cropping, and CDN-friendly cache keys without pre-generating asset variants. Useful input when scoping a media pipeline or DAM workstream.
  • Security posture for URL-based transformations: Since imgproxy URLs encode arbitrary transform parameters, an unsigned public endpoint is an open image-resizing proxy and a cost/abuse vector. The optional signing/encryption here directly supports the decision to enforce signed URLs and restrict transformation surfaces.
  • Use cases it unlocks cheaply: Multi-tenant SaaS with per-tenant image policies, e-commerce catalog thumbnails, CMS media handling, and any product where image variant proliferation is currently managed by hand.

When to Consider This Package

Consider it when all of the following hold:

  • You already run, or have decided to run, an imgproxy instance (or plan to) and need PHP-side URL construction.
  • You need signed or encrypted URLs — this is the package's differentiating feature versus hand-rolling query strings.
  • Your stack is Laravel/PHP and you want a framework-friendly wrapper rather than a bespoke URL builder.
  • The surface area you need is small and stable: build a URL, sign it, maybe encrypt it. Image transformation logic stays in imgproxy's own configuration.

Look elsewhere or hand-roll when:

  • Maturity risk is unacceptable. 0 stars and 0 dependents means no community validation, no battle-testing, and effectively a single-maintainer bus factor. For a path that sits on your critical content-delivery path, that is a real operational liability. The URL signing scheme is well-documented and small — a ~150-line internal helper is a credible alternative that removes the dependency entirely.
  • You are not using imgproxy. If you are on Cloudinary, Imgix, Cloudflare Images, or a similar hosted service, this package is irrelevant; evaluate those SDKs instead.
  • You need advanced behaviors (multiple imgproxy instances, key rotation, complex presets, presigned uploads) — verify the package covers them, since a thin wrapper may not.
  • You are not on Laravel or prefer a framework-agnostic approach — a plain SDK or your own builder may be a better fit.
  • Your security review requires a dependency with an active security-response process, CVE history, and multiple maintainers.

Recommended stance: worth a short spike, not a default adoption. Vendor-copy or wrap it behind an internal interface so it can be replaced.

How to Pitch It (Stakeholders)

For executives: Images are one of the largest and most frequently requested parts of our page weight. Running imgproxy lets us resize, crop, and modernize formats on demand at the edge instead of pre-generating and storing variants — reducing storage cost and engineering toil. This package is a small, MIT-licensed glue library that lets our PHP application produce the signed URLs imgproxy requires. It is low-cost and reversible: the dependency is thin and can be replaced with in-house code if needed. It does not change our hosting or vendor footprint on its own.

For engineering: It's a URL builder with signing/encryption support for imgproxy — nothing more. It keeps transform-parameter construction and HMAC signing out of our controllers, which is where mistakes (unsigned endpoints, inconsistent presets) tend to happen. Caveats to accept explicitly: zero community adoption, zero dependents, single maintainer. Mitigate by pinning a version, wrapping it behind our own ImageUrlBuilder interface, adding tests that assert signature correctness against a known-good fixture, and confirming we can swap it out in an afternoon. If that mitigation feels like more work than the package saves, we write the ~150 lines ourselves — the imgproxy signing spec is stable and documented.

Ask: Approve a one-sprint spike to (1) stand up imgproxy in staging, (2) validate signed URL generation end-to-end, and (3) return with a build-vs-adopt recommendation and a caching/rollout plan.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package