thewebsolver / container
A simple container for Dependency Injection and Auto-wiring
dev-main
2025-02-26 03:55 UTC
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-02-26 03:55:55 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.