domainflow / container
Dependency injection container package for PHP 8.3+
v0.1.0
2025-04-06 15:17 UTC
Requires
- php: ^8.3 || ^8.4
- psr/container: ^2.0
- symfony/yaml: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.69
- nikic/php-parser: ^5.4
- phpstan/phpstan: ^2.1.5
- phpstan/phpstan-deprecation-rules: ^2.0
- phpunit/phpunit: ^12.0
- symfony/phpunit-bridge: ^7.2
README
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.