flatphp / config
light config component
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/flatphp/config
Requires
- php: >=5.5
This package is not auto-updated.
Last update: 2025-10-04 01:51:33 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');