{"id":25860761,"url":"https://github.com/nikolaiprogramist/differ","last_synced_at":"2025-07-04T08:04:16.552Z","repository":{"id":258197430,"uuid":"872346232","full_name":"NikolaiProgramist/Differ","owner":"NikolaiProgramist","description":"This library that finds the difference between two files. This utility can work with such data formats as: JSON, YAML, YML. You can also see the comparison result in different output formats, for example: Stylish, Plain, JSON.","archived":false,"fork":false,"pushed_at":"2025-05-01T09:20:58.000Z","size":97,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T08:04:02.885Z","etag":null,"topics":["differ","json","library","php8","terminal-utility","yaml","yml"],"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/NikolaiProgramist.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":"2024-10-14T09:25:13.000Z","updated_at":"2025-06-20T07:04:36.000Z","dependencies_parsed_at":"2024-11-08T11:17:33.361Z","dependency_job_id":"97bbcb50-eb72-4b61-bff8-08707b26f598","html_url":"https://github.com/NikolaiProgramist/Differ","commit_stats":null,"previous_names":["nikolaiprogramist/php-project-48","nikolaiprogramist/differ"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/NikolaiProgramist/Differ","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaiProgramist%2FDiffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaiProgramist%2FDiffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaiProgramist%2FDiffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaiProgramist%2FDiffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikolaiProgramist","download_url":"https://codeload.github.com/NikolaiProgramist/Differ/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikolaiProgramist%2FDiffer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263472275,"owners_count":23471811,"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":["differ","json","library","php8","terminal-utility","yaml","yml"],"created_at":"2025-03-01T22:57:29.244Z","updated_at":"2025-07-04T08:04:16.506Z","avatar_url":"https://github.com/NikolaiProgramist.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Differ\n\n[![tests-check](https://github.com/NikolaiProgramist/php-project-48/actions/workflows/tests-check.yml/badge.svg)](https://github.com/NikolaiProgramist/php-project-48/actions/workflows/tests-check.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/b070d4d02aad3ce48e32/maintainability)](https://codeclimate.com/github/NikolaiProgramist/php-project-48/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/b070d4d02aad3ce48e32/test_coverage)](https://codeclimate.com/github/NikolaiProgramist/php-project-48/test_coverage)\n\n## About\n\nThis project is a library/utility that finds the difference between two files.\nThe library can work with data formats such as: `JSON`, `YAML`, `YML`.\nYou can also see the result of the comparison in the terminal in different output formats,\nfor example: `stylish`, `plain`, `json`. The default format is `stylish`.\nIf the files do not exist, the library will inform you.\n\n## Prerequisites\n\n+ Linux, MacOS, WSL\n+ PHP \u003e=8.3\n+ Composer\n+ Make\n+ Git\n\n## Libraries\n\n+ php-cli-tools\n+ docopt\n+ functional-php\n+ yaml\n\n## Install project\n\nDownloading the utility and installing dependencies:\n\n```bash\ngit clone https://github.com/NikolaiProgramist/Differ.git\ncd php-project-48\nmake install\n```\n\nGive the binary file execution rights:\n\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).\nAlso pass the paths to the two files you need:\n\n```bash\nbin/gendiff --format=stylish file1.json file2.json\n```\n\nYou can also choose the second output format `plain`:\n\n```bash\nbin/gendiff --format=plain file1.json file2.json\n```\n\nInstead of the flag `--format`, you can use the short version `-f`.\n\n## Examples:\n\n[![asciicast](https://asciinema.org/a/703225.svg)](https://asciinema.org/a/703225)\n\n## Stargazers over time\n\n[![Stargazers over time](https://starchart.cc/NikolaiProgramist/php-project-48.svg?variant=adaptive)](https://starchart.cc/NikolaiProgramist/php-project-48)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaiprogramist%2Fdiffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolaiprogramist%2Fdiffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolaiprogramist%2Fdiffer/lists"}