- Notifications
You must be signed in to change notification settings - Fork0
🗳 Plain-simple array container implementation for PSR-11. 🐘 PHP8-ready 🔥
License
NotificationsYou must be signed in to change notification settings
technically-php/array-container
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Technically\ArrayContainer is a plain-simplePSR-11 container implementationpowered by a simple associative array under the hood.
- PSR-11
- PHP 8.0+
- Semver
- Tests
UseComposer package manager to addArrayContainer to your project:
composer require technically/array-container<?phpuseTechnically\ArrayContainer\ArrayContainer;// ... instantiate your services: $logger, $cache, $config// Instantiate with predefined entries$container =newArrayContainer(['logger' =>$logger,'cache' =>$cache,]);// Add more entries later$container->set('config',$config);// Get entries from it later in your code$logger =$container->get('logger');
All notable changes to this project will be documented in theCHANGELOG file.
- Implemented byIvan Voskoboinyk
About
🗳 Plain-simple array container implementation for PSR-11. 🐘 PHP8-ready 🔥
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.