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)