定制 mariya/gendiff 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mariya/gendiff

Composer 安装命令:

composer require mariya/gendiff

包简介

The second PHP project, utility to find differences in configuration files.

README 文档

README

Maintainability Build Status

A PHP console utility to find differences in configuration files.

Utility features:

  • Multi-format support
  • Report generation as plain text, pretty и json

Installation

Via Composer

$ composer require mariya/gendiff

Usage

Get help:

$ gendiff -h

Generate the difference between two files (json, yaml):

$ gendiff before.json after.json

The utility supports different output formats. By default, the report is generated as pretty. Example:

$ gendiff before.json after.json

{
    host: hexlet.io
  + timeout: 20
  - timeout: 50
  - proxy: 123.234.53.22
  + verbose: true
}

Using the option --format with value plain to get a report in the following format:

$ gendiff --format plain before.json after.json

Property 'timeout' was changed. From '50' to '20'
Property 'proxy' was removed
Property 'verbose' was added with value: 'true'

In addition, you can get the report in json format using the appropriate option value:

$ gendiff --format json before.json after.json

{"0":{"key":"host","type":"unchanged","valueBefore":"hexlet.io","valueAfter":"hexlet.io","children":null},"1":{"key":"timeout","type":"changed","valueBefore":50,"valueAfter":20,"children":null},"2":{"key":"proxy","type":"deleted","valueBefore":"123.234.53.22","valueAfter":null,"children":null},"3":{"key":"verbose","type":"added","valueBefore":null,"valueAfter":true,"children":null}}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固