PHPackages                             chubbyphp/chubbyphp-laminas-config-factory - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. chubbyphp/chubbyphp-laminas-config-factory

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

chubbyphp/chubbyphp-laminas-config-factory
==========================================

1.5.1(4mo ago)342.4k↓14.1%113MITPHPPHP ^8.3CI passing

Since Sep 5Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-laminas-config-factory)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory)[ RSS](/packages/chubbyphp-chubbyphp-laminas-config-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (13)Used By (13)

chubbyphp-laminas-config-factory
================================

[](#chubbyphp-laminas-config-factory)

[![CI](https://github.com/chubbyphp/chubbyphp-laminas-config-factory/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-laminas-config-factory/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/2a2bcdb008823bc8179d389b13a8e3c40377712e71c506a385b41afd49a9621f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f72792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-laminas-config-factory?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/cd6804776d4fb5cb0c38bfcbf5816f62355550fe6984a5e882f149459d9c1d59/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d6c616d696e61732d636f6e6669672d666163746f72792532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-laminas-config-factory/master)[![Latest Stable Version](https://camo.githubusercontent.com/c20af415c454ed520059fb51885e2e07430e688bf8cb12a7a60b6763e527f2ef/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f72792f76)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory)[![Total Downloads](https://camo.githubusercontent.com/1e3474570fe82cbf7766bc81d852fdcb135b7a791986aedcce8e21283d82f3bf/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f72792f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory)[![Monthly Downloads](https://camo.githubusercontent.com/63b2dca74b49bff7bb2d8f963a324bc52e26297c1249888f09161952872d98d3/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f72792f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory)

[![bugs](https://camo.githubusercontent.com/734ed379f03ebfb58836b946a80f0b38a62ce1b960875ad927098513a2f90bbe/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![code_smells](https://camo.githubusercontent.com/a17aa940ba95941e56a3549594a809f9c2ced2d377f238d7cde7d3c665092c98/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![coverage](https://camo.githubusercontent.com/4bbf1265a121635c1eea5bf9534c5853249f0b824080fbc8cdbe9b8c64f44c27/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![duplicated_lines_density](https://camo.githubusercontent.com/ce0c240f4600d4c0ad0c945028c2b551b0fa97bd4ab04e7f64e0efdb94e0bcdc/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![ncloc](https://camo.githubusercontent.com/05ff28301e58fe80029cac48f2709e002e4f505331c269b2669041b8a3804fa3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![sqale_rating](https://camo.githubusercontent.com/a7ddcd52fdaf42f6252d298208e4eaf53dc9164a6d49705158816e9ff9f09a94/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![alert_status](https://camo.githubusercontent.com/6db659755de4bf8dbd3e80ba4f5f7869cb76976b9b9710d2cd9e7ea489c0f50d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![reliability_rating](https://camo.githubusercontent.com/0a2da375acc72e7cf00368608af7dae9c058a9e0994efdff3f5714bcc83e8f5d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![security_rating](https://camo.githubusercontent.com/1908965bed1c49df3950e0372de61d4472fdd9c11176ec7df985a0be5d2cc815/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![sqale_index](https://camo.githubusercontent.com/f0c84fe340e9fd30b89ddf6b4c2dd3e1bb59947ceaf9498eac2429d3aa1a8ef0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)[![vulnerabilities](https://camo.githubusercontent.com/511517d795a1080f31ae94514827006ed3c6e662e1b5157427c5262888d21500/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6c616d696e61732d636f6e6669672d666163746f7279266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-laminas-config-factory)

Description
-----------

[](#description)

An abstract service factory for the [laminas/laminas-servicemanager](https://packagist.org/packages/laminas/laminas-servicemanager) and any other dependency injection container who's been able to handle it's config, like [chubbyphp/chubbyphp-container](https://packagist.org/packages/chubbyphp/chubbyphp-container) via [chubbyphp/chubbyphp-laminas-config](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config)and many (Aura.Di, Pimple, Auryn, Symfony, PHP-DI) more.

The original concept of this abstract service factory is by [@DASPRiD](https://github.com/DASPRiD) used in [dasprid/container-interop-doctrine](https://packagist.org/packages/dasprid/container-interop-doctrine)which was handed over to [roave/psr-container-doctrine](https://packagist.org/packages/roave/psr-container-doctrine).

Small adjustments and the possibility to use the concept as a basis for all service factories led me to make it available as an independent repository.

Requirements
------------

[](#requirements)

- php: ^8.3
- [psr/container](https://packagist.org/packages/psr/container): ^2.0.2

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-laminas-config-factory](https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory).

```
composer require chubbyphp/chubbyphp-laminas-config-factory "^1.5"
```

Usage
-----

[](#usage)

```
