Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 412 Bytes

readme.md

File metadata and controls

19 lines (15 loc) · 412 Bytes

Config

Lightweight configuration file loader that supports PHP and JSON files

$ cat path/to/config/foos.php
<?php return ['foo' => 'bar'];

$ cat path/to/config/bars.json
{"bar":"baz"}
$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']