https://github.com/soul-rise/arrayaccess-container
ArrayAccess adapter for container
https://github.com/soul-rise/arrayaccess-container
adapter arrayaccess arrayaccess-adapter container dependency-injection di laminas phpmig psr-11 service-manager servicemanager
Last synced: 10 days ago
JSON representation
ArrayAccess adapter for container
- Host: GitHub
- URL: https://github.com/soul-rise/arrayaccess-container
- Owner: soul-rise
- License: mit
- Created: 2020-06-11T20:12:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-14T16:18:47.000Z (over 5 years ago)
- Last Synced: 2025-11-27T16:31:56.901Z (about 2 months ago)
- Topics: adapter, arrayaccess, arrayaccess-adapter, container, dependency-injection, di, laminas, phpmig, psr-11, service-manager, servicemanager
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# arrayaccess-container
[](https://github.com/soul-rise/arrayaccess-container/releases)
[](https://travis-ci.org/soul-rise/arrayaccess-container)
[](https://packagist.org/packages/soul-rise/arrayaccess-container)
What is it?
-----------
ArrayAccess adapter
You can use your container as array
You can use this adapter for example for library [davedevelopment/phpmig][phpmig]
or you are like array
Supported Containers:
* [laminas/laminas-servicemanager][servicemanager]
P.S
Also, adapter supports PSR 11
Getting Started
---------------
```php
use \SoulRise\ArrayAccess\LaminasServiceManager\ArrayAccessContainerAdapter;
$arrayAccess = new ContainerArrayAccessAdapter($container);
$service = $arrayAccess['your_service']; // create and get instance your service
```
[phpmig]:https://github.com/davedevelopment/phpmig
[servicemanager]:https://github.com/laminas/laminas-servicemanager