yuhari/config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yuhari/config

Composer 安装命令:

composer require yuhari/config

包简介

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

README 文档

README

配置读写工具

email: yuhari@126.com

###install:

  1. git
    git clone https://github.com/yuhari/helper-config.git
  2. 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) ;

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-09-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固