Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Configure your application using .ini, .json, .yaml or .neon files or a MySQL DB.
PHP
branch: master
Failed to load latest commit information.
src/Jasny Merge branch 'master' of github.com:jasny/config
tests
.gitignore Fixed ignore composer.lock
.travis.yml Added composer install to travis
LICENSE First commit
README.md Fixed travis button
apigen.neon Fixed new code
composer.json Advise symfony/yaml in composer
phpunit.xml.dist First commit

README.md

Jasny's Config class

Build Status

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

Installation

Jasny Config is registred at packagist as jasny/config and can be easily installed using composer. Alternatively you can simply download the .zip and copy the file from the 'src' folder.

Example

<?php
    use Jasny\Config;

    Config::i()->load('settings.yaml');
    Config::i()->db = new Config('db.ini');
    Config::i()->env = ($tmp = getenv('APPLICATION_ENV')) ? $tmp : 'prod';
    Config::i()->load("$env.yaml", array('optional'=>true));

API documentation (generated)

http://jasny.github.com/Config/docs

Something went wrong with that request. Please try again.