Download the PHP package corex/container without Composer
On this page you can find all versions of the php package corex/container. 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 container
Simple and Immutable Dependency Injection Container
Breaking changes - this package has been rewritten from scratch to be more strict and simple to use.
- Container is immutable.
- Support for PSR-11 Container Interface.
- Support for setting default parameters on definitions.
A few examples
Make a class without binding.
Type-hints will be resolved if they are bound in advance.
Make a class with binding and parameters.
Make a class binding by class.
Make a class binding by implemented interface.
Parameters
Parameters will be resolved in following order:
- Type-hint ContainerInterface will be resolved to instance of container.
- Default parameters specified on definition.
- Default parameters in constructor/method.
- Specified parameters when calling make() and not already resolved.
All versions of container with dependencies
PHP Build Version
Package Version
The package corex/container contains the following files
Loading the files please wait ....