Skip to content

bsfp/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

\BSFP\C

API

Configuration

new \BSFP\C(__DIR__ . '/path/to/configFolder');

Retrieve your config

\BSFP\C::get('filename');

Work with one level of folder and Yaml and Json files.

Demo

config/hello.json

{
  "what": "world"
}

index.php

<?php

new \BSFP\C(__DIR__ . '/config');

echo 'Hello ' . \BSFP\C::get('hello')->get('what');

result:

php index.php

Hello world

Run tests

./vendor/bin/phpunit --bootstrap vendor/autoload.php tests

About

basic system for php config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages