Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dice is okay but the code is showing its age (very dynamic), it is not very actively developed and lacks PSR-11 support. Looking at other options on Packagist, skipping obviously abandoned or associated with the facade-infested framework: - https://github.com/nette/di 😡 container generator 😡 too featureful - https://github.com/symfony/dependency-injection 🙂 native PSR-11 😡 promotes configuration - https://github.com/PHP-DI/PHP-DI 🙂 nice docs 😡 also too featureful - https://github.com/auraphp/Aura.Di 😡 verbose API - https://github.com/ray-di/Ray.Di 🙂 nice docs 😡 “enterprise” API - https://github.com/slince/di 🙂 native PSR-11 🙂 nice API 😡 few unneeded features (aliases, parameters, tags) - https://github.com/thephpleague/container 🙂 native PSR-11 🙂 nice API 🙂 nice docs 😡 even more unneeded features (inflectors) After reviewing all of the above, I selected Slince’s DI library. There were some bugs but they were quickly addressed upstream.
- Loading branch information