Ryan Chandler · May 27, 2023
Minimal container (Build your own service container in PHP)
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
In this mini series, you'll learn how to build your own service container for dependency injection in PHP. I'll start with the simplest PSR-11 compliant container and then add various features until we have a powerful, general purpose container. What is a "service container"? A service container is a PHP object that is responsible for the instatiation of other objects. You tell the container how…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.