Collect and provide configs from local files or config providers
composer require phpfit/config
use PhpFit\Config\Config;
$config = new Config($options);
$host = $config->host;
Directory to get all local php config file. Base name of the file will be used as config key, while the content on the file as value.
File local.php
is a special file that will be used as replacer for all other
predefined configs.
List of config provider to call on getting the configs
The cache driver to use to cache the config.
Default cache name to use to store the final configs.
An interface to use for custom config provider.
This method get called for every time the config generated. The method should return new configs to use.
The config provider for local file.
The phpfit/env library is licensed under the MIT license. See License File for more information.