PHP code example of codin / config
1. Go to this page and download the library: Download codin/config library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
codin / config example snippets
$config = Codin\Config\Config::create('path/to/config');
$config->has('foos.foo'); // true
$config->get('foos.foo'); // "bar"
$config->has('bars'); // true
$config->get('bars'); // ['bar' => 'baz']
shell
$ cat path/to/config/foos.php
return ['foo' => 'bar'];
$ cat path/to/config/bars.json
{"bar":"baz"}