An open API service indexing awesome lists of open source software.

https://github.com/gemblue/simpledependencyinjection

Step by step how to build your own dependency injection / service container.
https://github.com/gemblue/simpledependencyinjection

dependency-injection php-di

Last synced: 12 months ago
JSON representation

Step by step how to build your own dependency injection / service container.

Awesome Lists containing this project

README

          

# SimpleDependencyInjection

Step by step how to build **your own** dependency injection / service container. For learning purpose, not for production.

### What Is

You can read about DI here https://en.wikipedia.org/wiki/Dependency_injection.

Topic

- Reflection Class
- Recursive
- DI
- Service container

### Credit

- https://indigotree.co.uk/automatic-dependency-injection-with-phps-reflection-api/
- https://medium.com/tech-tajawal/dependency-injection-di-container-in-php-a7e5d309ccc6
- https://www.php.net/manual/en/class.reflectionclass.php
- https://symfony.com/doc/current/service_container.html
- http://php-di.org/
- https://gist.github.com/MustafaMagdi/2bb27aebf6ab078b1f3e5635c0282fac