{"id":18818733,"url":"https://github.com/chrisharrison/merged-container","last_synced_at":"2026-01-15T21:30:18.648Z","repository":{"id":56952379,"uuid":"112726659","full_name":"chrisharrison/merged-container","owner":"chrisharrison","description":"A PSR-11 compliant container that merges a set of PSR-11 containers. You might call it a container-container.","archived":false,"fork":false,"pushed_at":"2017-12-01T16:32:20.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T02:45:44.692Z","etag":null,"topics":["containers","ioc","php7","psr-11"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrisharrison.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-01T10:21:51.000Z","updated_at":"2022-02-12T12:34:22.000Z","dependencies_parsed_at":"2022-08-21T09:20:18.633Z","dependency_job_id":null,"html_url":"https://github.com/chrisharrison/merged-container","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisharrison%2Fmerged-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisharrison%2Fmerged-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisharrison%2Fmerged-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisharrison%2Fmerged-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisharrison","download_url":"https://codeload.github.com/chrisharrison/merged-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753732,"owners_count":19691162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","ioc","php7","psr-11"],"created_at":"2024-11-08T00:18:10.365Z","updated_at":"2026-01-15T21:30:16.556Z","avatar_url":"https://github.com/chrisharrison.png","language":"PHP","readme":"# merged-container\n\n[![Build Status](https://travis-ci.org/chrisharrison/php-array-of.svg?branch=master)](https://travis-ci.org/chrisharrison/php-array-of)\n\nA [PSR-11](http://www.php-fig.org/psr/psr-11/) compliant container that merges a set of PSR-11 containers. You might call it a container container.\n\n## Requirements ##\n\nRequires PHP 7.1\n\n## Installation ##\n\nThrough Composer, obviously:\n\n```\ncomposer require chrisharrison/merged-container\n```\n\n## Why? ##\n\nThe [PSR-11](http://www.php-fig.org/psr/psr-11/) container interface have the following properties:\n\n* It's immutable. That means it can't be changed after it's been instantiated.\n* It doesn't provide an iteration mechanism.\n\nThese two properties mean it's difficult to create a container which is a merge of two or more PSR-11 containers.\n\nThis 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](https://github.com/PHP-DI/PHP-DI), [Pimple](https://github.com/silexphp/Pimple)) as long as they implement the PSR-11 interface.\n\n## Usage ##\n\nCreate a merged container:\n\n```php\n$merged = new MergedContainer([$container1, $container2]);\n```\n\nUse it like any other PSR-11 container.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisharrison%2Fmerged-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisharrison%2Fmerged-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisharrison%2Fmerged-container/lists"}