https://github.com/technically-php/array-container
🗳 Plain-simple array container implementation for PSR-11. :elephant: PHP8-ready :fire:
https://github.com/technically-php/array-container
array container php psr-11 psr-container simple
Last synced: about 2 months ago
JSON representation
🗳 Plain-simple array container implementation for PSR-11. :elephant: PHP8-ready :fire:
- Host: GitHub
- URL: https://github.com/technically-php/array-container
- Owner: technically-php
- License: mit
- Created: 2021-03-03T11:28:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-04T12:13:40.000Z (8 months ago)
- Last Synced: 2025-11-08T00:16:18.425Z (5 months ago)
- Topics: array, container, php, psr-11, psr-container, simple
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Technically Array Container
`Technically\ArrayContainer` is a plain-simple [PSR-11][1] container implementation
powered by a simple associative array under the hood.
![Tests Status][badge]
## Features
- PSR-11
- PHP 8.0+
- Semver
- Tests
## Installation
Use [Composer][2] package manager to add *ArrayContainer* to your project:
```
composer require technically/array-container
```
## Example
```php
$logger,
'cache' => $cache,
]);
// Add more entries later
$container->set('config', $config);
// Get entries from it later in your code
$logger = $container->get('logger');
```
## Changelog
All notable changes to this project will be documented in the [CHANGELOG](./CHANGELOG.md) file.
## Credits
- Implemented by [Ivan Voskoboinyk][3]
[1]: https://www.php-fig.org/psr/psr-11/
[2]: https://getcomposer.org/
[3]: https://github.com/e1himself?utm_source=web&utm_medium=github&utm_campaign=technically/array-container
[badge]: https://github.com/technically-php/array-container/actions/workflows/test.yml/badge.svg