\BSFP\C
API
Configuration, (*1)
new \BSFP\C(__DIR__ . '/path/to/configFolder');
Retrieve your config, (*2)
\BSFP\C::get('filename');
Work with one level of folder and Yaml and Json files., (*3)
Demo
config/hello.json, (*4)
{
"what": "world"
}
index.php, (*5)
<?php
new \BSFP\C(__DIR__ . '/config');
echo 'Hello ' . \BSFP\C::get('hello')->get('what');
result:, (*6)
php index.php, (*7)
Hello world
Run tests
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests