stealth35/apc-profiler-bundle
A Symfony bundle that integrates APC/APCu statistics into the web profiler, adding a debug toolbar panel for cache memory usage, hits, misses, and stored entries so developers can inspect and troubleshoot caching behavior during development.
Architecture fit. Despite the "Laravel/PHP package" categorization, stealth35/apc-profiler-bundle is a Symfony bundle, not a Laravel package and not a framework-agnostic library. Its architecture is a Symfony Bundle subclass with a DI extension and a profiler DataCollector that plugs into the Web Debug Toolbar. It has no service provider, facade, or config file compatible with Laravel. Adopting it in a Laravel codebase is not an integration problem — it is a framework substitution problem.
Integration feasibility. Low. Two paths exist:
AppKernel registration and yields a toolbar panel showing APC/APCu cache stats. That is the only native use case.apcu_cache_info() / apcu_sma_info(). Reimplementing the concept is cheaper than porting the bundle.Technical risk. High.
apcu_*) and OPcache. Any residual apc_* calls in a PHP 7+/8 environment will fatal on undefined functions or silently no-op if aliases were shimmed.Key questions.
apc_* or apcu_*, and does it guard with function_exists?Stack fit. Mismatched for a Laravel shop. It is only a fit for a Symfony 1.x/2.x-era application. Score it as not applicable for Laravel and legacy-only for Symfony.
Migration path. None in the conventional sense — a bundle is installed and registered, not wrapped. To obtain the capability on our stack:
barryvdh/laravel-debugbar, or register a custom Telescope watcher reading apcu_cache_info(). No third-party dependency required.Cache profiler panel (Symfony 4.1+ ships one), which supersedes this bundle entirely.Compatibility. Presumed PHP 5.4–5.6 and Symfony 2.0–2.8. Incompatible with PHP 7+ APCu-only environments and with Symfony 3+ without patching. Do not add to a composer.json that resolves modern constraints — expect unsatisfiable requirements or a framework conflict.
Sequencing.
Maintenance. Effectively unmaintained. No upstream fix path, no CVE response, no upgrade story. Any adoption transfers long-term maintenance liability to us. Budget for a fork if the capability is genuinely required.
Support. Zero community. 0 dependents means no peer knowledge base, no Stack Overflow corpus, no third-party guides. Onboarding cost is "read the source." README-level documentation only.
Scaling. The profiler collector overhead is per-request but dev-only in intent. The APCu stats calls (apcu_cache_info, apcu_sma_info) are cheap but must never run in production — they add noise and expose internals through the toolbar. There is no production-mode value here; this is a developer-experience tool, not an operational one.
Failure modes.
apc_* in PHP 7+ environments.Ramp-up. Low to read the source (it is a small bundle), but ramp-up is effort spent on a dead end. The conceptual takeaway — instrument the cache layer in the debug toolbar — is transferable in an hour; the artifact is not.
Recommendation. Do not adopt. For a Laravel stack it is architecturally inapplicable; for a Symfony stack the built-in cache profiler supersedes it; for legacy Symfony 2 it is unsupported and fragile. If the underlying requirement is cache visibility, satisfy it with Debugbar/Telescope (Laravel) or the native profiler (Symfony) and close the evaluation.
How can I help you explore Laravel packages today?