configurator
Release time!
通过作曲家
composer require assada/configuratorPHP:> = 7.0
Symfony/YAML:> = 3.2
而不是Symfony/YAML建议安装PECL YAML扩展。
$ 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 ());配置器在GPL3.0许可下发布。有关详细信息,请参见捆绑的许可证文件。
Alex Ilyenko(@assada)