2017 © Pedro Peláez
 

library config

framework

image

bsfp/config

framework

  • Tuesday, May 9, 2017
  • by ndufreche
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

\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

The Versions

09/05 2017

dev-master

9999999-dev

framework

  Sources   Download

MIT

The Development Requires

by Dufreche