flatphp/config

light config component

Maintainers

Package info

github.com/flatphp/config

pkg:composer/flatphp/config

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.0.0 2017-05-21 09:22 UTC

This package is not auto-updated.

Last update: 2026-03-07 03:46:17 UTC


README

light config component

Install

composer require "flatphp/config"

Usage

use Flatphp\Config\BaseArray as Config
Config::set(array(
    'db' => array(
	'host' => 'localhost',
	'port' => '3306',
	'username' => 'test',
	'password' => '123456',
	'dbname' => 'test'
    ),

    'redis' => array(
	'host' => 'localhost',
	'port' => '6379'
    )
));

$db_config = Config::get('db');

OR

use Flatphp\Config\BaseArray as Config
Config::set('key', 'value');