container-interop/container-interop
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
psr/container | 1.1.2 | 3.5 kB | MIT | prod |
The container-interop/container-interop is a package designed to promote the interoperability of container objects such as Dependency Injection Containers and Service Locators, among others. This PHP project aims to standardize certain features in container objects to achieve a high level of interoperability that allows users to consume any container implementation that can adhere to these interfaces. This opens up flexibility and encourages cohesive use across different PHP projects with specific implementations.
To start using container-interop/container-interop, you need to install it via Composer. Below is the command you need to run in your terminal:
composer require container-interop/container-interop
Once installed, you can incorporate it into your PHP project as required. Also, be informed that although it's not officially endorsed by the PHP-FIG, it adheres to the spirit and ideals of PHP-FIG and is being developed by members of PHP-FIG alongside other developers.
The documentation for container-interop/container-interop is situated within the GitHub repository. You can access the main documentation here
There are also specific documents detailing the ContainerInterface
here and the Delegate lookup feature here.
Several examples are provided concerning the projects implementing ContainerInterface
and the delegate lookup feature. Be sure to check those out as they provide valuable insights on how to use and integrate this package into your project effectively. Also, note that starting from Feb. 13th 2017, container-interop is officially deprecated in favor of PSR-11. Hence, projects implementing container-interop interfaces are encouraged to directly implement PSR-11 interfaces instead.