Skip to content
/ config Public

Lightweight configuration file loader that supports PHP and JSON files

Notifications You must be signed in to change notification settings

codin/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config

Lightweight configuration file loader that supports PHP and JSON files

$ cat path/to/config/foos.php
<?php return ['foo' => 'bar'];

$ cat path/to/config/bars.json
{"bar":"baz"}
$config = Codin\Config\Config::create('path/to/config');
$config->has('foos.foo'); // true
$config->get('foos.foo'); // "bar"
$config->has('bars'); // true
$config->get('bars'); // ['bar' => 'baz']

About

Lightweight configuration file loader that supports PHP and JSON files

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages