pablok/cache-stats-bundle
Monitor and inspect your application's cache with detailed statistics on hits, misses, writes, and evictions. This bundle adds a simple dashboard and profiling tools so you can spot performance bottlenecks, tune cache configuration, and keep your cache healthy in development and production.
opcache_get_status() / apcu_cache_info() calls) or vendor a maintained wrapper. At MIT license and ~10 stars, the honest framing is "buy the idea, not the dependency" — the value is the opinionated set of metrics and thresholds, not the code volume.php.ini that otherwise get blocked in review./health/cache endpoint or Artisan command, (b) run it in a sidecar/internal Symfony admin app against the same PHP runtime, or (c) skip it and write ~100 lines yourself. Option (c) is frequently correct at this maturity level.Consider it when:
php.ini, and you have no APM (Datadog, New Relic, Tideways, Blackfire) already covering opcode cache health.Look elsewhere when:
Mitigations if you adopt: pin the version, vendor the collectors into your own namespace, add a PHP-version compatibility test to CI, and set a review checkpoint (e.g., re-evaluate at the next PHP minor upgrade or in two quarters).
To executives: This is a free, MIT-licensed diagnostic utility that tells us whether PHP's in-memory caches — the layers that make our app fast before a single line of our code runs — are actually working. Misconfigured caches are a common, invisible cause of slow page loads and unnecessary server spend, and they're cheap to fix once visible. It is internal tooling, not a customer feature: no product risk, no user-facing surface, and the main cost is roughly a day of engineering to adapt it to our stack. The caveat is maturity — it's a small, single-maintainer project, so we should treat it as reference code we own rather than a dependency we rely on. Recommendation: time-box a spike, and if it surfaces actionable misconfiguration, fold the logic into our own health endpoint rather than adopting the bundle long-term.
To engineering: Symfony bundle that exposes OPCache, APCu, and realpath cache statistics. Not Laravel-compatible out of the box — the DI extension and config tree don't apply, so the realistic path is extracting the collectors into a service provider plus an authenticated internal route or Artisan command. Keep it off production request paths; expose behind admin auth. Pin and vendor it. Success criteria for the spike: does it show us a cache misconfiguration we can fix this sprint, and is the collector code clean enough to own? If yes, adopt the logic; if no, close it out and keep the ~100 lines we wrote.
How can I help you explore Laravel packages today?