Вычислитель отличий – программа, определяющая разницу между двумя структурами данных, вроде: http://www.jsondiff.com.
Возможности:
- Поддержка разных входных форматов: yaml и json
- Генерация отчета в виде plain text, stylish и json
Написание тестов (PHPUnit) и разработка через них.
Difference calculator is a program that determines the difference between two data structures, like: http://www.jsondiff.com.
Opportunities:
- Support for different input formats: yaml and json
- Generating a report in the form of plain text, stylish and json
Writing tests (PHPUnit) and developing through them.
git clone git@github.com:toridnc/php-project-lvl2.git
cd php-project-lvl2
make install
bin/gendiff -h
bin/gendiff -v
bin/gendiff tests/fixtures/file1.json tests/fixtures/file2.json
bin/gendiff tests/fixtures/file1.yml tests/fixtures/file2.yml
bin/gendiff tests/fixtures/file-1.json tests/fixtures/file-2.json
bin/gendiff tests/fixtures/file-1.yaml tests/fixtures/file-2.yaml
bin/gendiff tests/fixtures/file-1.json tests/fixtures/file-2.yaml
bin/gendiff --format plain tests/fixtures/file-1.json tests/fixtures/file-2.json
bin/gendiff --format plain tests/fixtures/file-1.yaml tests/fixtures/file-2.yaml
bin/gendiff --format json tests/fixtures/file-1.json tests/fixtures/file-2.json
bin/gendiff --format json tests/fixtures/file-1.yaml tests/fixtures/file-2.yaml