mrgoodbytes8667/cached-http-client-bundle
A cached HTTP client wrapper that stores outbound responses so repeated API calls skip the network, cutting latency and rate-limit pressure. Configure cache TTLs and stores, then reuse responses across requests in Laravel and PHP apps.
Http facade with Cache::remember() sprinkled at call sites. This package centralizes that logic, so the build-vs-buy question becomes "do we maintain our own wrapper or adopt a small, early-stage dependency?"Consider it when:
Look elsewhere when:
To executives: This is a small utility that lets our app remember the results of repeated external API calls instead of paying for them twice. The business case is straightforward — fewer billable calls, lower latency for users, and less exposure to third-party rate limits. The caveat is maturity: it's at version 0.2.0, maintained by one person, and just shipped a breaking change. Treat it as a candidate for a time-boxed spike, not a committed dependency.
To engineering: The package wraps Laravel's HTTP client and returns cached responses. v0.2.0 removed the deprecated request helper (so any existing call sites need migrating) and now builds a cacheable response object explicitly — which means we should verify what actually gets serialized, how cache keys are derived, and whether error responses are cached or bypassed. Two days of evaluation: swap one low-risk integration onto it, check hit rate and correctness, and report back. If the cache-key semantics are opaque or undocumented, we build the wrapper ourselves — it's ~100 lines and we own the failure modes.
Recommendation: pilot, don't adopt. The value is real but the package has no track record yet, and the v0.2.0 response-construction change is exactly the kind of detail that determines whether caching is safe or silently wrong.
How can I help you explore Laravel packages today?