PHPackages                             zendframework/zend-config-aggregator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zendframework/zend-config-aggregator

Abandoned → [laminas/laminas-config-aggregator](/?search=laminas%2Flaminas-config-aggregator)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

zendframework/zend-config-aggregator
====================================

Lightweight library for collecting and merging configuration from different sources

1.2.0(6y ago)481.7M↓38.6%7[1 issues](https://github.com/zendframework/zend-config-aggregator/issues)20BSD-3-ClausePHPPHP ^5.6 || ^7.0

Since Dec 8Pushed 6y ago7 watchersCompare

[ Source](https://github.com/zendframework/zend-config-aggregator)[ Packagist](https://packagist.org/packages/zendframework/zend-config-aggregator)[ RSS](/packages/zendframework-zend-config-aggregator/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (8)Dependencies (6)Versions (10)Used By (20)

zend-config-aggregator
======================

[](#zend-config-aggregator)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [laminas/laminas-config-aggregator](https://github.com/laminas/laminas-config-aggregator).

[![Build Status](https://camo.githubusercontent.com/26403ae83ac9115e586d4e928d89451e5e83306f06ea9e0d97ebc611e828e416/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d636f6e6669672d61676772656761746f722e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-config-aggregator)[![Coverage Status](https://camo.githubusercontent.com/f97f5e93458fb88b50ce392efddcbeca0e89902b68b336f93123e6bdb116561a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d636f6e6669672d61676772656761746f722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-config-aggregator?branch=master)

Aggregates and merges configuration, from a variety of formats. Supports caching for fast bootstrap in production environments.

Usage
-----

[](#usage)

The standalone `ConfigAggregator` can be used to merge PHP-based configuration files:

```
use Zend\ConfigAggregator\ConfigAggregator;
use Zend\ConfigAggregator\PhpFileProvider;

$aggregator = new ConfigAggregator([
    new PhpFileProvider('*.global.php'),
]);

var_dump($aggregator->getMergedConfig());
```

Using this provider, each file should return a PHP array:

```
// db.global.php
return [
    'db' => [
        'dsn' => 'mysql:...',
    ],
];

// cache.global.php
return [
    'cache_storage' => 'redis',
    'redis' => [ ... ],
];
```

Result:

```
array(3) {
  'db' =>
  array(1) {
    'dsn' =>
    string(9) "mysql:..."
  }
  'cache_storage' =>
  string(5) "redis"
  'redis' =>
  array(0) {
     ...
  }
}
```

Configuration is merged in the same order as it is passed, with later entries having precedence.

Together with `zend-config`, `zend-config-aggregator` can be also used to load configuration in different formats, including YAML, JSON, XML, or INI:

```
use Zend\ConfigAggregator\ConfigAggregator;
use Zend\ConfigAggregator\ZendConfigProvider;

$aggregator = new ConfigAggregator([
    new ZendConfigProvider('config/*.{json,yaml,php}'),
]);
```

For more details, please refer to the [documentation](https://docs.zendframework.com/zend-config-aggregator/).

---

- File issues at
- Documentation is at

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~159 days

Recently: every ~244 days

Total

8

Last Release

2379d ago

Major Versions

0.2.1 → 1.0.02017-04-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (75 commits)")[![mtymek](https://avatars.githubusercontent.com/u/777893?v=4)](https://github.com/mtymek "mtymek (48 commits)")[![boesing](https://avatars.githubusercontent.com/u/2189546?v=4)](https://github.com/boesing "boesing (27 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (19 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (9 commits)")[![kokspflanze](https://avatars.githubusercontent.com/u/1885435?v=4)](https://github.com/kokspflanze "kokspflanze (5 commits)")[![kynx](https://avatars.githubusercontent.com/u/1320145?v=4)](https://github.com/kynx "kynx (2 commits)")[![malios](https://avatars.githubusercontent.com/u/9884827?v=4)](https://github.com/malios "malios (1 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (1 commits)")

---

Tags

ZendFrameworkzfconfig-aggregator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-config-aggregator/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-config-aggregator/health.svg)](https://phpackages.com/packages/zendframework-zend-config-aggregator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
