This library loads/saves php array from/to a configuration file.
$ composer require piotrpress/configerrequire __DIR__ . '/vendor/autoload.php';
use PiotrPress\Configer;
$config = new Configer( '.config', [
'key' => 'value'
] );
echo $config[ 'key' ];
$config[ 'key' ] = 'new_value';
$config->save();- Branch
2.xsupports PHP >=8.0version. - Branch
1.xsupports PHP ^7.4version.