Download the PHP package goez/di without Composer
On this page you can find all versions of the php package goez/di. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package di
Goez Dependency Injection Container
A simple dependency injection container which was inspired by Laravel Service Container.
Features
- Nested dependency injection.
- Interface binding.
TODO
- Method injection
Installation
Usage
Initialize
make($name[, $arguments])
Make an instance:
Inject object by type-hint:
Nested dependency injection:
bind($name, $className|$closure)
Binding by key:
Binding by interface:
instance($name, $instance)
Bind an existed instance.
singleton($name, $instance|$closure)
Create singleton instance by closure.
Create singleton instance by an existed instance.
License
MIT
All versions of di with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 8.0
The package goez/di contains the following files
Loading the files please wait ....