coco-soft/config

A configuration component

Maintainers

Package info

github.com/coco-soft/config

Issues

pkg:composer/coco-soft/config

Statistics

Installs: 18

Dependents: 0

Suggesters: 0

Stars: 0

v1.0 2017-03-03 14:54 UTC

This package is not auto-updated.

Last update: 2026-03-15 04:07:32 UTC


README

A configuration component

###Usage:

Install it via Composer:

composer require coco-soft/config

<?php

//require the composer autoload.php file


use coco\config\Config;

//set config file path
Config::setConfigDir('/path/to/config/dir');

//if get charset in app.php return 
$charset = Config::get('app.charset');

//or use a helper function
$charset = config('app.charset');

// the second parameter is if throw a exception
// when this config is not defined

$charset = config('app.charset', true);