zendframework/zend-config-aggregator
Zend Config Aggregator collects configuration from multiple sources—PHP arrays, ConfigProvider classes, and globals—into a single merged array. It supports caching and recursive merging, making it easy to compose modular application configuration in Zend/Laminas applications.
0600) as part of your release process, which is a security/ops posture decision rather than a pure engineering one.Consider adoption when:
Look elsewhere when:
config() loading, config:cache, and service providers cover most of this ground; adding another aggregator introduces two config mental models.For executives: This is a small, focused, low-risk component that standardizes how configuration is assembled and cached across services. It replaces custom merging code with a maintained implementation and gives us a secure, predictable production config artifact. Recent releases are maintenance-oriented — added a cache-file permission setting and PHP 7.3 support — which indicates the component is being kept current rather than expanded. Cost of adoption is low; the main consideration is that we should not run it alongside Laravel's native config system without a clear reason.
For engineering: The 1.2.0 release adds ConfigAggregator::CACHE_FILEMODE, letting us control permissions (octal, e.g. 0600) on the generated cache file — relevant to our deployment hardening checklist — and adds PHP 7.3 support. No breaking changes, no deprecations, no removals, so the upgrade is safe and can be folded into routine dependency maintenance. The library remains a compile-time config aggregator: ideal for layered module config and a fast production cache, not for runtime config mutation. Before committing, confirm whether we consume the Zend or Laminas package line, since that determines our long-term support path. Verdict: adopt for non-Laravel PHP services that need layered config merging; for Laravel services, default to native config:cache unless we have a specific modular-config need.
How can I help you explore Laravel packages today?