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)