Skip to content

soul-rise/arrayaccess-container

Repository files navigation

arrayaccess-container

Latest Version Build Status Total Downloads

What is it?

ArrayAccess adapter

You can use your container as array

You can use this adapter for example for library davedevelopment/phpmig or you are like array

Supported Containers:

P.S

Also, adapter supports PSR 11

Getting Started

use \SoulRise\ArrayAccess\LaminasServiceManager\ArrayAccessContainerAdapter;

$arrayAccess = new ContainerArrayAccessAdapter($container);
$service = $arrayAccess['your_service']; // create and get instance your service