2017 © Pedro Peláez
 

library merged-container

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container.

image

chrisharrison/merged-container

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container.

  • Friday, December 1, 2017
  • by chrisharrison
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

merged-container

Build Status, (*1)

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container., (*2)

Requirements

Requires PHP 7.1, (*3)

Installation

Through Composer, obviously:, (*4)

composer require chrisharrison/merged-container

Why?

The PSR-11 container interface have the following properties:, (*5)

  • It's immutable. That means it can't be changed after it's been instantiated.
  • It doesn't provide an iteration mechanism.

These two properties mean it's difficult to create a container which is a merge of two or more PSR-11 containers., (*6)

This library provides a container which implements the PSR-11 interface. It's constructed by an array of other PSR-11 containers. These containers can use any concrete implementation (PHP-DI, Pimple) as long as they implement the PSR-11 interface., (*7)

Usage

Create a merged container:, (*8)

$merged = new MergedContainer([$container1, $container2]);

Use it like any other PSR-11 container., (*9)

The Versions

01/12 2017

dev-master

9999999-dev

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Harrison

01/12 2017

v1.1

1.1.0.0

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Harrison

01/12 2017

v1.0

1.0.0.0

A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container container.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Harrison