https://github.com/domainflow/container
PSR-11-compliant dependency injection container for PHP 8.3—featuring contextual bindings, scopes, caching, hooks, and reflection-based autowiring.
https://github.com/domainflow/container
container dependencyinjection di php8
Last synced: 4 months ago
JSON representation
PSR-11-compliant dependency injection container for PHP 8.3—featuring contextual bindings, scopes, caching, hooks, and reflection-based autowiring.
- Host: GitHub
- URL: https://github.com/domainflow/container
- Owner: domainflow
- License: mit
- Created: 2025-04-06T15:10:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-06T15:17:53.000Z (about 1 year ago)
- Last Synced: 2025-04-12T06:35:55.343Z (about 1 year ago)
- Topics: container, dependencyinjection, di, php8
- Language: PHP
- Homepage: https://www.domainflow.dev/docs/container
- Size: 49.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/domainflow/uuid/actions/workflows/tests.yml)




# 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](https://www.php-fig.org/psr/psr-11/) for broad interoperability.
---
## ⚙️ Requirements
- **PHP 8.3+**
---
## 📦 Installation
Use Composer to install the package:
```sh
composer require domainflow/container
```
---
More details and usage examples can be found in our [documentation](https://www.domainflow.dev/docs/container)
---
## 📄 License
The **DomainFlow Container** is open-sourced software licensed under the [MIT license](https://opensource.org/license/MIT).