jtet/miniconfig

Simple configuration file loader for PHP in 20 lines of code.

Maintainers

Package info

github.com/jtet/MiniConfig

pkg:composer/jtet/miniconfig

Statistics

Installs: 26

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

1.0.0 2012-11-19 21:25 UTC

This package is not auto-updated.

Last update: 2026-03-14 21:02:04 UTC


README

Simple configuration file loader for PHP in 20 lines of code.

##Using MiniConfig

Mini Config can load YAML (.yml) or INI (.ini) files. The variables in your configuration file can be accessed as if they were properties of the Config object.

$c = new \JTet\Mini\Config("config.yml");
echo $c->db_user;

##Getting MiniConfig

Add the following to your composer.json file and run composer update.

"require": {
        "jtet/miniconfig": "dev-master"
    }

##License MiniConfig is available for your use under the OSL-3.0 license.