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

Sfcontext Bundle Laravel Package

theofidry/sfcontext-bundle

A Symfony bundle that integrates SfContext, giving your application a simple way to define and access shared context from services, controllers, and templates. It keeps context handling centralized and consistent across your Symfony project.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy vs. do nothing: This package resolves a problem both ecosystems now solve natively, so the decision it most directly supports is "do nothing." Laravel ships the app() helper plus facade-style resolution; modern Symfony ships autowiring, ServiceSubscriberInterface, and #[AutowireLocator]. There is no gap left to purchase.
  • Framework-fit triage: Despite being listed as a "Laravel/PHP package," this is a Symfony bundle built around Symfony's DIC. It would not drop into a Laravel application at all. If your roadmap is Laravel-first, this is out of scope on day one and shouldn't consume evaluation time.
  • Anti-pattern governance: The core feature — static access to the dependency injection container — is the service-locator pattern. This is useful as a reference point when writing or enforcing architecture guidelines ("we do not introduce static container access; here is why the ecosystem stopped doing it"), not as a dependency.
  • Legacy maintenance scoping: If a roadmap item is "modernize an inherited Symfony 2/3/4 codebase," you may encounter this bundle in the wild. The decision it supports is whether to remove it during a refactor rather than whether to adopt it.
  • Vendor-risk scoring: 4 stars, 0 dependents, last release December 2019, and an archived repository with a composite score of 0.09. This is the clearest possible signal for a "no new dependencies of this shape" rule in your intake policy.
  • Use cases it would legitimately cover, if it were maintained: one-off CLI scripts, legacy test bootstrapping, or migration shims where wiring a full container is heavier than the task. All of these are better served today by thin, in-house helpers you control.

When to Consider This Package

Consider it only in this narrow set of conditions, all of which must hold:

  • You are maintaining a Symfony application (not Laravel) that already depends on this bundle in composer.json.
  • The application is pinned to a PHP/Symfony version combination the bundle actually supported at its 2019 release.
  • The cost of removing the static container calls exceeds the cost of leaving them in place for the current cycle.
  • The code path is not security-, payment-, or data-integrity-sensitive, where an unmaintained dependency is a compliance problem regardless of how small it is.

Look elsewhere — decisively — when:

  • You are on Laravel. Use the container's app(), resolve(), or constructor injection. There is nothing to evaluate here.
  • You are on Symfony 4.4+ / 5+ / 6+ / 7+. Autowiring, ServiceSubscriberInterface, and #[AutowireLocator] cover every legitimate use case with first-party support.
  • You need a maintained dependency. The repository is archived, so there is no upstream to file issues against, no security response, and no PHP 8.x compatibility guarantee.
  • You need community validation. Zero dependents means no field testing beyond the author's own usage — you would be the only person debugging it.
  • Your policy requires active maintenance. An archived repo with a 2019 last release will fail most dependency-review gates outright.

How to Pitch It (Stakeholders)

Bottom line: do not adopt. This is a small, archived Symfony bundle that provides static access to Symfony's dependency injection container. It has not been updated since December 2019, has 4 GitHub stars and zero known dependents, and is explicitly archived by its author.

Why the answer is no, in three points:

  1. The problem is already solved upstream. Both Laravel and modern Symfony provide first-party container access. Adopting this adds a dependency to replace a built-in.
  2. Wrong ecosystem for our stack. It is a Symfony bundle, not a Laravel package — it cannot be used in a Laravel codebase without effectively rewriting it.
  3. Unmaintained by design. Archived means no security patches, no PHP compatibility work, and no support channel. Even a free dependency carries a real carrying cost when it lands in a code review gate.

What it costs us to skip: nothing. If a specific legacy script needs quick container access, an in-house helper is a few lines of code we own and can retire on our schedule.

What we should take from it: the pattern it enables — static service location — is one we should keep out of new code as a matter of architecture hygiene. Treat this evaluation as a documented "no" and move the effort to features that differentiate the product.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager