PSR-11

E452843

PSR-11 is a PHP standard that defines a common interface for dependency injection containers, enabling interoperable service retrieval across frameworks and libraries.

Try in SPARQL Jump to: Statements Referenced by

Statements (47)

Predicate Object
instanceOf PHP standard recommendation
PHP-FIG standard
aimsTo enable interoperability between containers
standardize service retrieval across frameworks and libraries
allows using different containers behind a common interface
appliesTo applications
frameworks
libraries
belongsTo PHP-FIG NERFINISHED
category PHP interoperability standard
defines common interface for dependency injection containers
container interface
service container interface
definesBehaviorFor container-related exceptions
missing service retrieval
successful service retrieval
definesException Psr\Container\Exception\ContainerExceptionInterface NERFINISHED
Psr\Container\Exception\NotFoundExceptionInterface NERFINISHED
documentationUrl https://www.php-fig.org/psr/psr-11/
enables plug-and-play container implementations
reusable libraries independent of specific containers
ensures consistent container access API
consistent error handling for container access
focusesOn dependency injection containers
service retrieval
governs how entries are fetched from a container
how existence of entries is checked in a container
hasFullName PHP-FIG PSR-11: Container Interface NERFINISHED
hasKeyInterface Psr\Container\ContainerInterface NERFINISHED
Psr\Container\Exception\ContainerExceptionInterface NERFINISHED
Psr\Container\Exception\NotFoundExceptionInterface NERFINISHED
hasLanguage PHP NERFINISHED
hasMethodCount 2 public methods in ContainerInterface
hasPrimaryGoal framework-agnostic service retrieval
interoperable container usage
hasStatus accepted
hasType interface specification
maintainedBy PHP Framework Interop Group NERFINISHED
namespace Psr\Container NERFINISHED
relatedTo dependency injection
inversion of control
service container
specifiesMethod Psr\Container\ContainerInterface::get(string $id)
Psr\Container\ContainerInterface::has(string $id)
usedFor checking service availability in a container
retrieving services from a container
version 1.0.0

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Slim Framework supports PSR-11