PSR11
PSR11, also known as the Container Interface, is a PHP Standard Recommendation that defines a common interface for dependency injection containers. It aims to standardize how libraries and frameworks interact with container implementations, making it easier to swap out different container solutions without altering application code. The core of PSR11 is the Container Interface, which specifies two methods: get() and has().
The get() method is used to retrieve an object or value from the container by its identifier,
Many popular PHP dependency injection containers, such as PHP-DI, Symfony's DependencyInjection component, and League Container, have