enjoys/config

Parse config files

1.7.1 2023-09-14 16:17 UTC

This package is auto-updated.

Last update: 2024-11-14 18:54:58 UTC


README

php 7.4 php 8.0 Build Status Code Coverage Scrutinizer Code Quality

Install

composer require enjoys/config

Usage

$config = new Enjoys\Config\Config();
$config->addConfig($configFilepath1);
$config->addConfig($configFilepath2, [], \Enjoys\Config\Config::YAML);
$config->get('key', 'defaultValue'); //get from $array['key']
$config->get('key->subKey'); //get from $array['key']'subKey']