An open API service indexing awesome lists of open source software.

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:

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