2017 © Pedro Peláez
 

library config

php config utils, which provides environment chosen,node extended ..

image

yuhari/config

php config utils, which provides environment chosen,node extended ..

  • Friday, December 22, 2017
  • by yuhari
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

helper-config

配置读写工具, (*1)

##### email: yuhari@126.com

install:

  1. git
git clone https://github.com/yuhari/helper-config.git
  1. composer
composer require yuhari/config 

example usages:

<?php
/**
 * 
 *
 * @author yuhari
 * @version $Id$
 * @copyright , 27 September, 2017
 * @package default
 */

/**
 * Test Case
 */

include_once '../vendor/autoload.php' ;

//initial
\config\Factory::init(__DIR__ . '/conf/', 'dev') ;

//you can get all options by character '*' .
$c = \config\Factory::get('example.*') ;
print_r($c) ;

//you can get a specified value.
$c = \config\Factory::get('example.tip') ;
print_r($c) ;

//you may also achieve target as this
$c = \config\Factory::get('example', 'tip') ;
print_r($c) ;

//you can set a value
\config\Factory::set('example.tip', 'dev mode') ;
$c = \config\Factory::get('example.tip') ;
print_r($c) ;

\config\Factory::set('env.welcome' , 'Hello, world!') ;
$c = \config\Factory::get('env.welcome') ;
print_r($c) ;

The Versions

22/12 2017

dev-master

9999999-dev

php config utils, which provides environment chosen,node extended ..

  Sources   Download

by Avatar yuhari

22/12 2017

1.1.1

1.1.1.0

php config utils, which provides environment chosen,node extended ..

  Sources   Download

by Avatar yuhari

29/09 2017

1.1

1.1.0.0

php config utils, which provides environment chosen,node extended ..

  Sources   Download

by Avatar yuhari

28/09 2017

1.0

1.0.0.0

php config utils, which provides environment chosen,node extended ..

  Sources   Download

by Avatar yuhari