Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🗳 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

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Technically\ArrayContainer is a plain-simplePSR-11 container implementationpowered by a simple associative array under the hood.

Tests Status

Features

  • PSR-11
  • PHP 8.0+
  • Semver
  • Tests

Installation

UseComposer package manager to addArrayContainer to your project:

composer require technically/array-container

Example

<?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');

Changelog

All notable changes to this project will be documented in theCHANGELOG file.

Credits

About

🗳 Plain-simple array container implementation for PSR-11. 🐘 PHP8-ready 🔥

Topics

Resources

License

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp