PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe Config File   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Dframe Config File
Load configuration values from scripts with arrays
Author: By
Last change: Update of README.md
Date: 2 years ago
Size: 1,304 bytes
 

Contents

Class file image Download

Dframe/Config - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

Documentation - Config PHP

Composer

$ composer require dframe/config

Standalone

use Dframe\Config\Config;

include_once 'vendor/autoload.php';
$configPath = __DIR__. DIRECTORY_SEPARATOR . 'config'. DIRECTORY_SEPARATOR;

$config = Config::load('ConfigFile', $configPath);
$config->get('key1'); // Return value
$config->get('keyValid', 'yes'); // return 'yes' ||  if key does not exist then you can replace value

License

Open-sourced software licensed under the MIT license