Skip to content

heropoo/config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config

A configuration component

###Usage:

Install it via Composer:

composer require heropoo/config
<?php
require_once './Config.php';
require_once './Exception.php';

use Moon\Config\Config;

$config = new Config('/path/to/config/dir');

//if get charset in app.php return 
$charset = $config->get('app.charset');

// the second parameter is if throw a exception
// when this config is not defined
$charset = $config->get('app.charset', true);

About

A configuration component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%