elnebuloso/flex-config

This package is abandoned and no longer maintained. No replacement package was suggested.

configuration for your environment

5.0.0 2016-07-26 21:26 UTC

This package is not auto-updated.

Last update: 2022-02-19 02:42:37 UTC


README

abandoned

configuration for your environment

about

  • Returns Zend\Config for PHP Array Configurations from Files
  • Optional merging of environment specific Configuration
  • The Key represents the Configuration File
  • e.g. foo = foo.php under directory
  • e.g. foo = foo.staging.php for staging environment
  • staging configurations will optionally be merged onto main configuration

examples

\Flex\ConfigManager::setDirectory('configs');
\Flex\ConfigManager::get('app');
\Flex\ConfigManager::setDirectory('configs');
\Flex\ConfigManager::setEnvironment('staging');
\Flex\ConfigManager::get('app');