承接 marella/phig 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

marella/phig

最新稳定版本:v0.0.1

Composer 安装命令:

composer require marella/phig

包简介

PHP Config library.

README 文档

README

Coverage Status Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License

PHP Config Library.

Quick Usage

composer require marella/phig
<?php

require 'vendor/autoload.php';

$loader = new \Phig\ConfigLoader();
$config = $loader->read(__DIR__.'/config');

$timezone = $config['app.timezone']; // 'UTC'
$locale = $config['app']['locale']; // 'en'
$database = $config['database']; // array
$host = $database['host']; // 'localhost'

where config directory contains these files:

app.php

<?php

return [
    'timezone' => 'UTC',
    'locale' => 'en',
];

database.php

<?php

return [
    'host' => 'localhost',
    'database' => 'forge',
    'username' => 'forge',
    'password' => '',
];

Documentation

See the wiki for more details and documentation.

Contributing

See contributing guidelines before creating issues or pull requests.

License

Open-source software released under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-16