PHP Classes

File: src/Config/README.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe Framework   src/Config/README.md   Download  
File: src/Config/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Dframe Framework
Modular MVC based PHP Web framework
Author: By
Last change: Update of src/Config/README.md
Date: 3 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