2017 © Pedro Peláez
 

library config

light config component

image

flatphp/config

light config component

  • Sunday, May 21, 2017
  • by fredyang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Config

light config component, (*1)

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');

The Versions

21/05 2017

dev-master

9999999-dev

light config component

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Fred Yang

config

21/05 2017

v1.0.0

1.0.0.0

light config component

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Fred Yang

config