flatphp / config
light config component
v1.0.0
2017-05-21 09:22 UTC
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2025-04-18 23:19:55 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');