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

Apc Bundle Laravel Package

icedevelopment/apc-bundle

Symfony bundle for integrating APC-backed caching into PHP applications. It provides cache service wiring and utilities for managing APC cache entries, making it easier to use Alternative PHP Cache as a fast local cache in Symfony projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Deploy-pipeline scope: is post-deploy cache invalidation a first-class release step? This package exists to answer one operational question — "can we clear APC from the console instead of shelling into a box or restarting php-fpm?" If your release runbook currently has a manual cache-clear step (or a "restart the web tier" step that exists only because of cache), that's quantifiable toil. Instrument it (minutes per deploy × deploys/week × engineers) before deciding whether it deserves roadmap time at all.
  • Build vs. buy, and the "too small to buy" threshold. Functionally this is ~20–40 lines wrapping the APC clear function in a console command. It's a useful forcing function for a dependency-adoption policy: define a LOC/complexity floor below which we write it ourselves rather than take on a third-party maintenance and supply-chain obligation. This package is the textbook example for that policy — 0 stars, 0 dependents, last release 2022-05-27, single maintainer, no evidence of PHP 8.x support.
  • Legacy modernization prioritization. The need to clear APC (as opposed to APCu or OPcache) is itself a signal: APC is a deprecated, pre-PHP 5.5 extension superseded by APCu for user cache and OPcache for opcode cache. Adopting this package would paper over the symptom. The PM decision is whether the underlying stack upgrade moves up the tech-debt backlog — because that upgrade eliminates the requirement rather than satisfying it.
  • Standardizing deploy hooks across teams. If several services each hand-roll cache-clearing scripts, there's a legitimate platform-team decision: publish one blessed deploy-hook recipe (restart php-fpm, or a small artisan/console command) rather than let each repo vendor its own. This package is evidence for that consolidation argument, not the consolidation itself.
  • Vendor/supply-chain risk review. Zero stars and zero dependents means zero peer review. For any environment with SOC 2, PCI, or an SCA gate, an unmaintained 2022 dependency will surface as a finding. The PM decision is whether to allow it into the dependency graph at all — and the honest answer is that the cost of the exception exceeds the cost of writing the command.
  • Framework-fit check (material here). The package is named and packaged as a Symfony bundle (ApcBundle), while the request frames it in a Laravel context. That mismatch is a scoping decision in itself: it is not a drop-in for a Laravel app, and Laravel already ships php artisan optimize:clear / cache:clear for its own cache stores. Confirm fit before it reaches a sprint.

When to Consider This Package

  • You maintain a legacy Symfony application still running on the APC extension (PHP < 5.5 vintage, or an unusual build), where a console command genuinely removes a manual SSH step from the release runbook.
  • You need it as a reference implementation, not a dependency — read the source, copy the command into your own codebase, and take on no maintenance obligation.
  • Short-lived internal tooling where the dependency is already in composer.lock and no one will audit it, and where a failure to clear cache is an inconvenience rather than an incident.
  • Look elsewhere (or build in-house) when:
    • You're on modern PHP — APC isn't loaded, so the command cannot do what it claims; APCu/OPcache equivalents should be used instead.
    • You're on Laravel — native Artisan commands already cover the cache lifecycle, and adding a Symfony bundle to a Laravel app is unnecessary surface area.
    • You run multiple app servers or containers — clearing cache on one node doesn't help the fleet; you need a deploy-time restart, a shared cache backend, or an orchestrated fan-out.
    • You deploy immutable containers — a fresh container has a cold cache by definition, so the command is dead weight.
    • Your environment has SCA/licensing gates or a policy against unmaintained dependencies with a single maintainer and no recent release.
    • You need anything beyond a blunt clear — cache warming, hit-rate stats, per-pool targeting, or cache priming to avoid a post-deploy cold-start latency spike.

How to Pitch It (Stakeholders)

Executive summary (one paragraph): This package solves a narrow operational annoyance — clearing a legacy PHP cache from the command line — and it solves it with roughly a day's worth of code. It has no adoption (0 stars, 0 dependents), no release since May 2022, and targets a caching extension that modern PHP has replaced. Recommendation: do not adopt. If the underlying need is real, it's a half-day to implement and test internally, or it's already covered by the framework's own cache commands. The larger question worth resourcing isn't this package — it's whether the legacy cache layer should be retired.

For engineering leads: Treat it as a snippet to copy, not a dependency to install. Estimate 2–4 hours to reimplement as a first-party console command with a test, which is cheaper than the review, licensing exception, and eventual forced migration of an unmaintained bundle. Verify which cache extension is actually loaded in each environment before writing code — if it's APCu or OPcache, the requirement changes and the command should target those APIs. Also confirm the framework: this ships as a Symfony bundle and is not a natural fit for a Laravel codebase.

For the platform/DevOps team: The real deliverable is a documented deploy hook — restart the web tier on release, or invoke a first-party cache-clear command — applied consistently across services. That removes the manual step permanently and removes the temptation for each repo to vendor its own script.

Decision on record: No-go on adoption (low value, unmaintained, framework mismatch, obsolete target). Go on a 2–4 hour internal implementation only if the deploy runbook confirms a manual cache-clear step still exists; otherwise close the request and log the underlying legacy-cache retirement as a tech-debt item.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels