Configure your application. You can load .ini, .json, .yaml or .neon files or a MySQL DB.

Installs: 1 574

Dependents: 1

Stars: 9

Watchers: 2

Forks: 1

Open Issues: 1

v1.2.0 2015-08-21 11:20 UTC


Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

Configure your application. You can load .ini, .json and .yaml files or MySQL DB.


Jasny Config is registred at packagist as jasny/config and can be easily installed using composer.

composer require jasny/config


use Jasny\Config;

$env = getenv('APPLICATION_ENV') ?: 'prod';

$config = new Config('settings.yml');
$config->db = new Config('db.ini');
$config->env = $env;
$config->load("$env.yml", array('optional'=>true)); // Overwrites existing settings