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
Dependency Injection Extra

Dependency Injection Extra Laravel Package

chilldev/dependency-injection-extra

Extra utilities and extensions for the chilldev dependency injection container, adding convenient helpers, configuration options, and integrations that simplify service wiring and make complex dependency graphs easier to manage in PHP applications.

View on GitHub
Deep Wiki
Context7

Commonly used patterns for Symfony2 DI provided out of the box.

Frequently asked questions about Dependency Injection Extra
What is chilldev/dependency-injection-extra used for?
It provides commonly used patterns and helpers for Symfony2's dependency injection component, extending compiler passes and service definitions. It targets Symfony2 bundle-era applications, not Laravel. Its patterns include service wiring conveniences such as factories, decorators, lazy services, and tagged collections, which Laravel already handles natively.
Does chilldev/dependency-injection-extra work with Laravel?
No. Laravel uses Illuminate\Container, not symfony/dependency-injection, so there is no integration seam for Symfony compiler passes. Installing it would mean running a second container alongside Laravel's, which is an anti-pattern. Treat it as a read-only reference if you want pattern ideas.
Can I install chilldev/dependency-injection-extra in Laravel 10, 11, or 12?
Composer will likely refuse because constraints target PHP 5.x and symfony/dependency-injection ~2.x, while modern Laravel requires PHP 8.1+ and Symfony 6/7 components. Even a vendored fork would need rewritten constraints and an adapter layer. At that point you have written a new library rather than integrated this one.
What PHP and Symfony versions does this package require?
It is a Symfony2-era library, so expect PHP 5.x and symfony/dependency-injection 2.x constraints. Symfony 2.8 reached end of life in November 2018. Those requirements conflict with current Laravel and PHP versions.
How does it compare to Laravel's bind, singleton, extend, and tag features?
The package's value proposition overlaps heavily with native Laravel container features. Laravel bind and closures cover factory-style wiring, extend covers decorators, tag and tagged cover tagged-collection patterns, and deferred providers cover lazy service registration. Adopting the package would duplicate capabilities you already have.
How do I configure chilldev/dependency-injection-extra?
Configuration is handled through Symfony2 bundle and service-definition conventions, including compiler passes. There is no Laravel service provider or config file for it. In a Laravel app you would have to build a custom bridge, which is not recommended.
Is chilldev/dependency-injection-extra maintained or safe for production?
It has no meaningful maintenance signal: zero stars, zero dependents, and a Symfony2 EOL baseline. No active maintainer means no coordinated disclosure path for security issues. Even if container wiring has low CVE surface, an unpatched dependency graph is a production risk. Decline it as a runtime dependency.
How would I test this package in a Laravel project?
You cannot meaningfully test it against Laravel's container without a fork and adapter, because the compiler-pass extension model does not plug into Laravel's boot cycle. A spike would only prove that two containers can coexist, not that the package adds value. If you need the patterns, test native Laravel implementations instead.
What are the alternatives for complex service wiring in Laravel?
Use Illuminate\Container directly: bind and singleton for factories, extend for decorators, tag and tagged for plugin registries, contextual binding for interface selection, and deferred providers for boot-time cost. If you need reusable helpers, write a small internal package on top of the native container with tests and a supported PHP/Laravel matrix.
Is there a migration path from Symfony2 DI patterns to Laravel's container?
There is no incremental migration path because the package has no Laravel starting point. The practical route is pattern extraction: inventory the patterns you actually need, confirm which Laravel already covers, and build only the genuine gaps internally. Budget that as greenfield work, roughly one to two engineer-weeks for a small helper set plus tests.
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