domainflow/container

Dependency injection container package for PHP 8.3+

v0.1.0 2025-04-06 15:17 UTC

This package is auto-updated.

Last update: 2025-07-07 13:11:34 UTC


README

Tests Packagist Version PHP Version License PHPStan

DomainFlow Dependency Injection Container

The DomainFlow Container is a modular and extensible Dependency Injection (DI) Container built for modern PHP back-end applications and microservices. It provides a full suite of features to register, resolve, and manage dependencies with ease.

✨ Core Functionality

  • Dependency Injection (DI): Register and resolve dependencies automatically.
  • Singleton & Shared Instances: Bind and reuse single instances across your application.
  • Lazy Loading & Autowiring: Automatically resolve class dependencies only when needed.
  • Service Binding: Bind concrete implementations to interfaces or abstractions.
  • PSR-11 Compliance: Fully implements PSR-11 for broad interoperability.

⚙️ Requirements

  • PHP 8.3+

📦 Installation

Use Composer to install the package:

composer require domainflow/container

More details and usage examples can be found in our documentation

📄 License

The DomainFlow Container is open-sourced software licensed under the MIT license.