thewebsolver/container

A simple container for Dependency Injection and Auto-wiring

dev-main 2025-01-14 03:44 UTC

This package is auto-updated.

Last update: 2025-01-14 03:44:54 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.