{"id":25328513,"url":"https://github.com/brahmanchik/php-project-48","last_synced_at":"2026-04-19T10:31:14.228Z","repository":{"id":273596072,"uuid":"920244066","full_name":"brahmanchik/php-project-48","owner":"brahmanchik","description":"A package to compare JSON files and show differences","archived":false,"fork":false,"pushed_at":"2025-02-26T19:19:52.000Z","size":66,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-03T23:52:49.664Z","etag":null,"topics":["difference","library","php8","utility"],"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/brahmanchik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-21T20:09:56.000Z","updated_at":"2025-05-23T14:09:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e3bfb76-86ad-43b4-a81e-5d5e6c51e2bb","html_url":"https://github.com/brahmanchik/php-project-48","commit_stats":null,"previous_names":["brahmanchik/php-project-48"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brahmanchik/php-project-48","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmanchik%2Fphp-project-48","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmanchik%2Fphp-project-48/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmanchik%2Fphp-project-48/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmanchik%2Fphp-project-48/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brahmanchik","download_url":"https://codeload.github.com/brahmanchik/php-project-48/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brahmanchik%2Fphp-project-48/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32003946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["difference","library","php8","utility"],"created_at":"2025-02-14T02:34:18.821Z","updated_at":"2026-04-19T10:31:14.202Z","avatar_url":"https://github.com/brahmanchik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Differ\n\n### Hexlet tests and linter status:\n[![Actions Status](https://github.com/brahmanchik/php-project-48/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/brahmanchik/php-project-48/actions)\n\n[![show-directory](https://github.com/brahmanchik/php-project-48/actions/workflows/ci-checks.yml/badge.svg)](https://github.com/brahmanchik/php-project-48/actions/workflows/ci-checks.yml)\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/193d24e5902652b42601/maintainability)](https://codeclimate.com/github/brahmanchik/php-project-48/maintainability)\n\n[![Test Coverage](https://api.codeclimate.com/v1/badges/193d24e5902652b42601/test_coverage)](https://codeclimate.com/github/brahmanchik/php-project-48/test_coverage)\n\n## Description\n\n**Differ** a program that determines the difference between two data structures. The input files can be JSON, YAML or YML.\nYou can also see the comparison result in various output formats, such as stylish, plain, json.\nThe default output format is stylish. If the files do not exist, the utility will notify you about it.\n\n## Prerequisites\n- Linux, MacOS, WSL\n- PHP \u003e=8.3\n- Composer\n- Make\n- Git\n\n## Libraries\n- php-cli-tools\n- docopt\n- functional-php\n- yaml\n\n## Install\n\nDownloading the utility and installing dependencies:\n```bash\ngit clone https://github.com/brahmanchik/php-project-48\ncd php-project-48\nmake install\n```\n\nGive the binary file execution rights:\n```bash\nsudo chmod +x bin/gendiff\n```\n\n## Run\n\nTo use the utility, run the binary file and specify the output format (stylish by default). Also pass the paths to the two files you need:\n```bash\nbin/gendiff --format=stylish file1.json file2.json\n```\n\nYou can also choose the second output format plain:\n```bash\nbin/gendiff --format=plain file1.json file2.json\n```\nInstead of the flag --format, you can use the short version -f.\n\n## Demonstration of comparison with yaml and json files\n\n[![asciicast](https://asciinema.org/a/HgLB9G9g9BydEq6BaKHbefJIS.svg)](https://asciinema.org/a/HgLB9G9g9BydEq6BaKHbefJIS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahmanchik%2Fphp-project-48","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrahmanchik%2Fphp-project-48","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrahmanchik%2Fphp-project-48/lists"}