thewebsolver / container
A simple container for Dependency Injection and Auto-wiring
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thewebsolver/container
Requires
- php: >=8.2.0
- psr/container: ^2.0
- psr/event-dispatcher: ^1.0
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpcompatibility/phpcompatibility-wp: ^2.1
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- squizlabs/php_codesniffer: ^3.11
- wp-coding-standards/wpcs: ^3.1
This package is auto-updated.
Last update: 2025-10-11 12:32:35 UTC
README
TheWebSolver Container is a PowerPack Dependency Injection and Auto-wiring solution that implements PSR-11 Standards.
Installation (via Composer)
Install library using composer command:
$ composer require thewebsolver/container
Benefits
- Contextual binding: Provide abstract dependencies based on concrete entry.
- PSR-14 Events: Dispatch and Listen to events before, during or after resolving the entry.
- Aliasing: Container binding using an alias for a concrete classname, or even binding arbitrary value using lambda function.
Usage
For usage details, visit Wiki page.