brofist/configuration
Composer 安装命令:
composer require brofist/configuration
包简介
Handles merging of configurations
README 文档
README
Handles merging of configurations
Code information:
Package information:
Usage
<?php use Brofist\Configuration\Configuration; $development = new Configuration([ 'env' => 'development', 'admin' => [ 'name' => 'John', 'middleName' => 'Some Middle Name', ], ]); $production = new Configuration([ 'env' => 'production', 'admin' => [ 'name' => 'Other Name', 'lastName' => 'John', ], ]); $application = $development->merge($production); $application->toArray(); // will return [ // replaces when it is not an array 'env' => 'production', // merges when it is an array, replacing when necessary 'admin' => [ 'name' => 'Other Name', 'middleName' => 'Some Middle Name', 'lastName' => 'John', ], ];
Installing
composer require brofist/configuration
Issues/Features proposals
Here is the issue tracker.
Lincense
Authors
统计信息
- 总下载量: 761
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-04