Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

assada/configurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Star

Minimum PHP Version Codacy Badge Version Packagist Gratipay User Star

Installation

Via Composer

composer require assada/configurator

Requirements

PHP: >= 7.0

symfony/yaml: >= 3.2

Instead of symfony/yaml suggest install PECL yaml extension.

Usage

$config = new Config(['./configs/test.json', './configs/test2.json']);
$config->add('./test3.json');
$config->set('test.set', 'newData');

file_put_contents('export.json', $config->dump('json'));

var_dump($config->all());

License

Configurator is released under the GPL3.0 Licence. See the bundled LICENSE file for details.

Author

Alex Ilyenko (@Assada)