Skip to content

LiteWire DIA small autowiring container for PHP

One portable PHP file, no runtime dependencies, and a familiar get() / has() API.

LiteWire DI logo

Start with the smallest useful setup

Install the package, create a container, and request a concrete class. LiteWire DI builds its typed constructor dependencies automatically.

bash
composer require doiftrue/litewire-di

Read the getting-started guide for a short example, or continue to the full container documentation.

Released under the MIT License.