taldres/laravel-geocode-cache
A lightweight Laravel package for caching geocoding results, letting you store and reuse address lookups via your chosen cache driver to cut repeated API calls, improve response times, and keep third-party usage under control. Configurable and easy to drop into any Laravel app.
unique addresses × (30/29) per month rather than treating the cache as permanent storage. That changes the shape of a spend forecast, not just its magnitude.Adopt when all of the following hold:
Look elsewhere or build in-house when:
Caveat: this assessment is derived from release notes only, not from a review of the package internals. Cache-key strategy, collision behaviour, and driver assumptions are unverified and should be read before adoption.
For executives (one paragraph): We pay Google per geocoding request, and we currently pay repeatedly for the same addresses. This package caches those results inside our existing Laravel cache — no new infrastructure. More importantly, the new v0.2.0 release enforces Google's ~30-day retention limit in code, which removes a quiet compliance exposure: we can now demonstrate that we aren't warehousing licensed location data. Cost impact is a straightforward function of cache hit rate; risk is low because a cache miss degrades to latency and spend, never to incorrect behaviour.
For engineering: Small dependency, standard Laravel cache driver, no operational surface added. v0.2.0 is a breaking change: TTLs configured above 29 days are now clamped, so audit configuration before upgrading — and expect a one-time cold-cache effect where previously long-lived entries expire and billable calls spike for a short window after deploy. Validate the cache key derivation before rolling out broadly; address normalisation differences ("St." vs "Street") directly determine hit rate, and therefore the entire business case. Treat the package as pre-1.0: pin it, read the diff on minor bumps, and keep a thin wrapper of our own around the call site so an exit stays cheap.
Decision requested: Approve a bounded pilot — internal tools or one low-traffic customer-facing surface — instrument hit rate and spend for one billing cycle, then decide on broader rollout with real numbers rather than the vendor's estimate.
How can I help you explore Laravel packages today?