aerni/imagekit
Laravel integration for ImageKit.io that makes it easy to generate optimized image URLs, apply transformations, and manage uploads through a simple, fluent API.
The core decision this package informs is not "should we use this library" but "should we buy ImageKit as our image pipeline" — and it's a useful artifact for the second question.
srcset/sizes generation, on-the-fly format negotiation (WebP/AVIF), crop/focal-point transforms, and CDN caching — all as URL parameters rather than build steps. If your roadmap has "stop shipping 3 MB hero images" or "support retina without a second asset pipeline," this is a two-day spike, not a quarter.Adopt the pattern, not the package — but the "abandoned" objection is now weaker and must be re-verified, not repeated.
v2.2.0 is the first release in roughly five years. That is a data point, not a trend: one release does not establish a maintenance cadence, and the release notes do not state Statamic version support. Treat this as "someone still has the keys," not "actively maintained."
Consider it when:
composer require into production is now marginally more defensible than it was, but still not the recommendation.Look elsewhere when:
srcset breakpoints, <picture> art direction, LQIP placeholders). That's the actual hard part and is usually out of scope for a URL helper. Note the bypass flag is all-or-nothing per environment; it is not a per-asset fallback if the CDN 404s.For executives (one paragraph): We re-reviewed a small open-source addon for connecting our Statamic site to ImageKit, a commercial image CDN. A new release added a switch to serve images directly from our own servers instead of the CDN — useful for local development, and more importantly a built-in rollback lever for a vendor decision. The addon itself remains negligible in scale (tiny user base, first update in five years), but it still clarifies the real decision, which is a vendor one: image resizing, format conversion, and caching are configurable entirely through URLs, so we can offload them without touching application code or the build pipeline. The recommendation is unchanged — treat the addon as a free prototype, run a short paid pilot against our real asset library, and budget a small internal implementation (roughly 1–2 engineer-days) rather than adopting the library. The upside is measurable page-weight and Core Web Vitals improvement; the vendor lock-in risk is now cheaper to hedge because we can switch image delivery back to origin without a redeploy.
For engineering (the ask): Re-check Statamic version compatibility first — the release notes say nothing about it, and that is the gating question. Then read the repository as a specification rather than a dependency and reimplement as a project-local tag; the surface is small enough that a fork costs less than the upgrade risk of a sporadically maintained addon. Design the tag to take a Statamic asset plus a named transform set and return a URL, so ImageKit-specific parameter mapping stays in one file and can be swapped for Cloudinary, imgix, or self-hosted Glide without touching templates. Include the new bypass behavior in your spec — environment-driven, defaulting to CDN in production and origin locally — and confirm it fails safe (no silent hotlinking to origin in production under load). Keep srcset/sizes generation and format negotiation in scope from day one; those are the features that justify the pilot, and the package still does not provide them.
Bottom line: Green-light a scoped pilot, not an adoption. Score the vendor on transform quality, cache behavior, and pricing at our actual bandwidth; score the integration as "we'll build it" — now with a documented rollback path.
How can I help you explore Laravel packages today?