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

Cache Bundle Laravel Package

electivegroup/cache-bundle

Symfony bundle that adds cache routes and services via simple config imports, with cache subscriptions defined in your env file for flexible, environment-specific cache invalidation.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy — and the answer here is "build." The package's actual surface area is small: it registers routes, imports a services file, and reads a comma-separated CACHE_SUBSCRIPTIONS list from the environment to drive cache invalidation. That is a configuration convention, not a platform. A first-party implementation in Laravel is a config file plus a listener/observer registration — days, not weeks.
  • Roadmap input for cache invalidation strategy. The one durable idea worth pulling into our roadmap is declarative, env-driven cache subscriptions: enumerating which upstream domain events (ACL changes, user updates, organisation updates) should bust which caches, and toggling that per environment. That pattern is directly reusable for our multi-service data dependencies, regardless of framework.
  • Architecture decision on event-driven invalidation. The naming (-acl-api-organisation-updated-candidates-api) suggests an event-bus-style consumer where cache keys are tied to upstream resource-change events. Useful as a reference design when we scope invalidation for shared/reference data that changes outside our application.
  • Ecosystem-fit gate. This is a Symfony bundle, not a Laravel package — the README's routes.yaml, services.yaml, and @ElectiveCacheBundle/Resources/config/... resource imports are Symfony container semantics. For a Laravel codebase this is not an adoption decision at all; it's a "do not pursue" on framework grounds unless we deliberately bridge or fork it.
  • Use cases it would nominally serve: invalidating cached ACL/permission lookups when another service mutates them; busting user- and organisation-scoped caches on profile updates; environment-specific cache warm/invalidate toggles between staging and production.

When to Consider This Package

Consider it only if all of the following hold:

  • You are already on Symfony with a compatible major version, and the bundle's container/route wiring matches your application structure.
  • You are inside or closely aligned with the Elective ecosystem and the upstream services emitting those *-updated-* events are ones you consume.
  • You need a thin, MIT-licensed glue layer and are prepared to own it — i.e., you accept that you will read the source because the README does not document the event contract, subscription naming grammar, failure behavior, or cache-key mapping.
  • You have completed a security and supply-chain review and are comfortable with a single-release, zero-dependent dependency.

Look elsewhere — or build in-house — when:

  • You are on Laravel. The framework already provides the primitives this package wraps: cache stores with tag support, events/listeners and model observers for invalidation triggers, and config()-driven per-environment behavior. Bridging Symfony service definitions into Laravel is more work than writing the equivalent from scratch.
  • You need documentation, a support contract, or a community. Zero stars, zero dependents, and one release in early 2024 means no external bug-finding, no migration guidance, and no realistic expectation of upstream fixes. opportunity: 6.59 is a signal of a gap in the market, not evidence this package closes it.
  • Your invalidation logic is domain-specific. Cache subscription lists like the example encode ACL and organisation semantics that are almost certainly internal to Elective's products; adopting the package would import assumptions we don't share.
  • You require observable, testable invalidation. There is no evidence of metrics, logging, retry, or idempotency guarantees in the README — all of which are mandatory for a cache layer that can silently serve stale authorization data.

How to Pitch It (Stakeholders)

To executives: This package is not a candidate for adoption. It is a small, undocumented Symfony bundle from a single vendor with no community, no dependents, and no release cadence — and it targets the wrong framework for our stack. The good news is that it is also cheap to replicate: the only idea with real value is a declarative, environment-driven list of "what changed upstream, so invalidate this cache." I recommend we adopt that pattern internally rather than the dependency, at an estimated cost of one to two sprints inside the existing caching workstream. That gives us the same capability with full ownership, no supply-chain exposure, and no framework mismatch.

To engineering: Treat the repository as a design reference, not a library. Specifically, borrow the convention of enumerating cache subscriptions in environment configuration so staging and production can diverge without code changes, and so invalidation scope is auditable in one place. In Laravel this lands as a config array consumed by event listeners or model observers, with tagged cache stores for scoped busting. Before committing, we would need to answer three questions the README does not: what exactly the upstream event payload looks like, how subscription names map to cache keys, and what happens when an invalidation is missed or duplicated. Until those are answered, the package carries stale-data risk in exactly the area — permissions and organisation scope — where staleness is most expensive.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib