{"id":22887761,"url":"https://github.com/alexp11223/php-project-lvl2","last_synced_at":"2026-04-15T13:32:25.364Z","repository":{"id":56944730,"uuid":"201140121","full_name":"AlexP11223/php-project-lvl2","owner":"AlexP11223","description":"Compares two JSON, YAML files and shows the changes between them.   Project 2 of https://hexlet.io courses.","archived":false,"fork":false,"pushed_at":"2019-10-13T14:51:55.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T23:31:25.877Z","etag":null,"topics":["diff","hexlet","hexlet-projects","json","php","yaml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexP11223.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-07T23:04:37.000Z","updated_at":"2019-10-13T14:51:24.000Z","dependencies_parsed_at":"2022-08-21T02:40:21.149Z","dependency_job_id":null,"html_url":"https://github.com/AlexP11223/php-project-lvl2","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexP11223%2Fphp-project-lvl2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexP11223","download_url":"https://codeload.github.com/AlexP11223/php-project-lvl2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523867,"owners_count":20791444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","hexlet","hexlet-projects","json","php","yaml"],"created_at":"2024-12-13T20:38:23.641Z","updated_at":"2025-10-08T02:54:38.073Z","avatar_url":"https://github.com/AlexP11223.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/AlexP11223/php-project-lvl2.svg?branch=master)](https://travis-ci.org/AlexP11223/php-project-lvl2)\n[![Maintainability](https://api.codeclimate.com/v1/badges/beae01838b1d702842ac/maintainability)](https://codeclimate.com/github/AlexP11223/php-project-lvl2/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/beae01838b1d702842ac/test_coverage)](https://codeclimate.com/github/AlexP11223/php-project-lvl2/test_coverage)\n\n# gendiff\n\nCompares two JSON, YAML files and shows the changes between them in different formats: `pretty`, `plain`, `json`. \n\n## Installation\n\n- Install PHP 7.2+ and [Composer](https://getcomposer.org/doc/00-intro.md#globally).\n- Run `composer global require alexp11223/gendiff`.\n- Make sure that the Composer global bin dir (`composer global config bin-dir --absolute`) is in your `PATH`.\n\n[![asciicast](https://asciinema.org/a/9qTbJk0qjlNH8fAXwii5nhB9Z.svg)](https://asciinema.org/a/9qTbJk0qjlNH8fAXwii5nhB9Z)\n\n## Usage\n\n```\ngendiff [--format \u003cfmt\u003e] \u003cfirstFile\u003e \u003csecondFile\u003e\n```\n\nExamples:\n\n```\ngendiff before.json after.json\ngendiff before.yaml after.yaml\ngendiff before.json after.yaml\ngendiff before.json after.json --format plain\ngendiff before.json after.json --format json\n```\n\n### pretty\n\nHuman-readable JSON-like format similar to `diff`.\n\nFlat files:\n\n[![asciicast](https://asciinema.org/a/w1GQYjwBYf8Rw1rCTxosWHG7a.svg)](https://asciinema.org/a/w1GQYjwBYf8Rw1rCTxosWHG7a)\n\nNested objects:\n\n[![asciicast](https://asciinema.org/a/cIOkMEdDKqhijQ6f0WuoAWNS0.svg)](https://asciinema.org/a/cIOkMEdDKqhijQ6f0WuoAWNS0)\n\n### plain\n\nTextual description of the changes.\n\n[![asciicast](https://asciinema.org/a/jG4WCuuqGt4TEBaFOikZWb5e9.svg)](https://asciinema.org/a/jG4WCuuqGt4TEBaFOikZWb5e9)\n\n### json\n\nJSON tree describing the changes, intended for automated processing.\n\n [![asciicast](https://asciinema.org/a/WsoXeiMW6AGnaS7cgNfVua4ZG.svg)](https://asciinema.org/a/WsoXeiMW6AGnaS7cgNfVua4ZG)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexp11223%2Fphp-project-lvl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexp11223%2Fphp-project-lvl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexp11223%2Fphp-project-lvl2/lists"}