Weave Code
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

Zend Di Laravel Package

zendframework/zend-di

zendframework/zend-di is a PHP dependency injection container for Zend Framework apps. It supports autowiring, configurable definitions, and factories to build and wire objects at runtime, helping manage dependencies and improve testability.

View on GitHub
Deep Wiki
Context7

Configuration

Version 2

This is documentation for the legacy version (2.x) of zend-di.

Most of the configuration for both the setup of Definitions as well as the setup of the InstanceManager can be attained by a configuration file. This file will produce an array (typically) and have an iterable structure.

The top two keys are 'definition' and 'instance', each specifying values for the definition setup and instance manager setup, respectively.

The definition section expects the following information expressed as a PHP array:

$config = [
    'definition' => [
        'compiler' => [/* [@todo](https://github.com/todo) compiler information */],
        'runtime'  => [/* [@todo](https://github.com/todo) runtime information */],
        'class' => [
            'instantiator' => '', // the name of the instantiator, by default this is __construct
            'supertypes'   => [], // an array of supertypes the class implements
            'methods'      => [
                'setSomeParameter' => [ // a method name
                    'parameterName' => [
                        'name',        // string parameter name
                        'type',        // type or null
                        'is-required', // bool
                    ],
                ],
            ],
        ],
    ],
];
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation