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

Sf Container Injector Laravel Package

rollerworks/sf-container-injector

A Symfony component that injects services from the container into objects and controllers, enabling lazy setter-based dependency injection without constructor wiring. Useful for legacy code and optional dependencies.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy — resolved as "build." This package does not meaningfully inform a build/buy decision for a Laravel product: Laravel already ships Illuminate\Container with constructor injection, contextual binding, and auto-resolution. Evaluating this library mostly confirms that no third-party dependency is warranted for DI.
  • Dependency risk / supply-chain policy. The metadata is the decision input, not the code: 0 stars, 0 dependents, last release March 2014, repository explicitly archived under a "graveyard" org. Any roadmap item that proposes this package should be closed on maintenance-risk grounds alone.
  • Framework-boundary decisions. If a team is considering bridging Symfony's DI container into a Laravel app (e.g., to consume a Symfony bundle or shared library), this is not the tool to reach for; the modern equivalent is a narrow, actively maintained PSR-11 adapter, or a deliberate decision to keep Symfony components out of the request path.
  • Legacy archaeology / migration scoping. The only genuine product use is scoping: if you inherit a codebase that already depends on it, this supports a "replace, don't upgrade" ticket in the tech-debt backlog, prioritized by blast radius (likely small given zero dependents).
  • Roadmap hygiene. Use as a teaching example in dependency-review guidelines: what an abandoned package looks like in metadata, and why "it exists and sort of does what we want" is not sufficient grounds for adoption.

When to Consider This Package

  • Baseline recommendation: do not adopt. There is no active scenario in a Laravel product where this package is the right answer.
  • Only defensible case: you are maintaining a pre-2015 Symfony 2.x application that already vendors this library, and you need to understand or temporarily patch its behavior while planning removal. Even then, pinning and forking is safer than depending on an archived repo.
  • Look elsewhere — immediately — if any of the following are true:
    • You are on Laravel 8+ (or any modern PHP): use Laravel's native container, service providers, and @inject/constructor injection.
    • You need cross-framework container interoperability: use a maintained PSR-11 compatible adapter.
    • You need Symfony DI specifically: use symfony/dependency-injection directly, which is actively maintained.
    • You have any security, audit, or supported-dependency requirement: a repo with no releases in over a decade and no maintainer fails that bar by definition.
  • Disqualifying signals for any comparable candidate: archived status, zero dependents, ~11-year-old last release, no CI or security policy, single-maintainer graveyard org. Treat these as hard filters, not scoring inputs.

How to Pitch It (Stakeholders)

For executives: We evaluated rollerworks/sf-container-injector and are recommending against adoption. It is an abandoned library — archived by its author, last released in 2014, with no known users — and it duplicates capability Laravel already provides out of the box. Adopting it would add unsupported code to our dependency tree in exchange for zero product value. Decision: no-go; no engineering time requested.

For engineering: This is a Symfony DI container injector from the Symfony 2 era. Laravel's own container already covers constructor injection, contextual binding, and auto-wiring, so there is no functional gap to fill. The package is archived, has zero dependents, and has had no release since March 2014 — meaning no security response, no PHP 8 compatibility guarantees, and no upgrade path. If a specific integration need drove this evaluation (e.g., consuming a Symfony bundle), raise it separately and we will scope a maintained PSR-11 adapter or an isolated integration layer instead. If any existing code already references it, log a replacement ticket rather than an upgrade ticket.

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
cgv/localized-resource