Download the PHP package coroq/container without Composer
On this page you can find all versions of the php package coroq/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
Coroq Container
A lightweight, PSR-11 compatible Dependency Injection (DI) Container for PHP.
This library provides a modular approach to dependency injection with type-based autowiring. It offers static and dynamic container implementations that can be used independently or together through the OmniContainer.
Features
- PSR-11 compatible: Implements
Psr\Container\ContainerInterface
- Modular architecture: Multiple container types that can be used individually or combined
- Type-based autowiring: Automatically resolves dependencies based on type declarations
- Singleton management: Built-in support for shared instances
- Namespace-based resolution: Automatically instantiates classes from configured namespaces
- Circular dependency detection: Prevents infinite recursion with clear error messages
- Minimal dependencies: Only requires PHP 8.0+ and PSR Container Interface
Installation
Usage
OmniContainer
The OmniContainer combines static and dynamic containers for a complete DI solution:
StaticContainer
For explicitly registered entries:
DynamicContainer
Automatically instantiates classes from registered namespaces:
CompositeContainer
Delegates to multiple containers:
License
MIT License
All versions of container with dependencies
PHP Build Version
Package Version
The package coroq/container contains the following files
Loading the files please wait ....