Top 6 PHP di-container Projects
-
Nette DI
💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 8 features. (by nette)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
definitions
The package provides definition syntax. Definition is describing a way to create and configure a service or an object.
-
di
Lightweight and easy-to-use dependency injection library for PHP to simplify object management and promote loose coupling. (by commonphp)
-
cloud-casstle-di-container
⚡ High-performance PSR-11 DI container for PHP 8.1+ | 500k op/s | 3-4x faster than Symfony DI | Autowiring, Attributes, Compiled Container
Project mention: Building the Fastest DI Container for PHP: CloudCastle DI v2.0 | dev.to | 2025-10-16GitHub: https://github.com/zorinalexey/cloud-casstle-di-container Documentation: See repo for 4-language docs Test Reports: Detailed comparisons included 🤝 Contributing
PHP di-container discussion
PHP di-container related posts
Index
What are some of the best open-source di-container projects in PHP? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | Nette DI | 924 |
| 2 | Aura PHP | 352 |
| 3 | di | 236 |
| 4 | definitions | 15 |
| 5 | di | 6 |
| 6 | cloud-casstle-di-container | 5 |