tohmua/consolidare
Composer 安装命令:
composer require tohmua/consolidare
包简介
Consolidare merge tool
README 文档
README
Consolidare
This tool tries to make merging multiple "things" of any type easy and automated in an (hopefully) less opinionated fashion.
Install
composer require tohmua/consolidare
Use
$merge = new Consolidare\Merge(); $merge->data('{"id": 10}'); $merge->data(['name' => 'foo', 'email' => 'bar']); $merge->data(['email' => 'test@test.com']); $result = $merge->merge(Consolidare\MergeStrategy\MergeStrategyFactory::basic()); $result->retrieve(new Consolidare\ReturnType\Type\ToArray); // ['id' => 10, 'name' => 'foo', 'email' => 'test@test.com']
Wiki
More info is available in the Wiki
Tests
To run: composer test
The code coverage report can be found in tests/_output however this is git ignored but it will be generated automatically for you when you run the test suite.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-24