Download the PHP package njeaner/di-container without Composer
On this page you can find all versions of the php package njeaner/di-container. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download njeaner/di-container
More information about njeaner/di-container
Files in njeaner/di-container
Download njeaner/di-container
More information about njeaner/di-container
Files in njeaner/di-container
Vendor njeaner
Package di-container
Short Description A simple dependency injection container for php projects
License MIT
Package di-container
Short Description A simple dependency injection container for php projects
License MIT
Please rate this library. Is it a good library?
Informations about the package di-container
PHP Dependency Injection Container
A simple dependency injection container for php projects
Installation
How to use it
Container Initialization
Initialize without parameter
Initialize using the parameter
The container can be constructed with:
- @param \NJContainer\Container\InstanceDefinition|null $instance
and NJContainer\Container\InstanceDefinition can be constructed with:
- @param \NJContainer\Container\ContainerDefinition|null
Setting a dependency in the container
Setting one definition
Setting several definition using an array of definitions
Setting several definition using an file with return an array of definitions
Setting dependency parameters
Setting a parameter of an alias
Setting several parameter of an alias
Getting a dependency from the container
Use example
All versions of di-container with dependencies
PHP Build Version
Package Version
The package njeaner/di-container contains the following files
Loading the files please wait ....