elnebuloso / flex-config
configuration for your environment
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/elnebuloso/flex-config
Requires
- php: ^5.6 || ^7.0
- zendframework/zend-config: ^2.6
This package is not auto-updated.
Last update: 2022-02-19 02:42:37 UTC
README
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');