zendframework/zend-config
zendframework/zend-config provides configuration management for PHP apps: load settings from multiple formats (PHP arrays, INI, JSON, XML, YAML), merge/override environments, and access values via a simple object/array API. Part of the Zend Framework component set.
zend-config is a lightweight configuration management component from the legacy Zend Framework (now Laminas). Due to its archived status, it's largely superseded by modern alternatives like laminas/laminas-config or Symfony's Config component—but you may encounter it in legacy Laravel apps (especially pre-Laravel 5.8) or older codebases being migrated. Start by checking composer.json for zendframework/zend-config. The primary use case: loading config files (PHP, INI, JSON, XML, YAML via adapters) into arrays or objects for application use. Key classes include Zend\Config\Config and Zend\Config\Factory (or manual instantiation with adapters).
Zend\Config\Reader\Ini, Json, PhpArray, or Xml to parse config files into Config objects. Often wrapped in helper functions or service providers.Config’s constructor second argument ($allowModifications = true) or toArray() + array merging before reconstruction — useful for local overrides (e.g., config/local.php overriding config/app.php).Config::toArray() and new Config([...], true).allowModifications = false to prevent accidental runtime changes (though this requires strict separation of build-time vs runtime config).Zend\Config inside custom config providers or via ConfigRepository wrappers before Laravel adopted its native config system.laminas/laminas-config (direct fork with same namespace) or modern packages like symfony/config.symfony/yaml as a dependency when using Yaml reader—ensure it’s available or fall back to PHP/INI/JSON.Config; setting allowModifications = true is needed to use offsetSet() or __set().Zend\Config\* with Laminas\Config\* — but this is unnecessary if staying on legacy stack.var_dump($config->toArray()) reveals merged values; count($config) may be misleading if keys are numeric or nested.ReaderInterface for domain-specific formats (e.g., .env → Config) — though .env is better handled via vlucas/phpdotenv in Laravel.Config.How can I help you explore Laravel packages today?