{"id":15022476,"url":"https://github.com/php/pecl-text-xdiff","last_synced_at":"2025-11-04T22:03:55.249Z","repository":{"id":18328761,"uuid":"21507891","full_name":"php/pecl-text-xdiff","owner":"php","description":"File differences/patches.","archived":false,"fork":false,"pushed_at":"2023-03-09T16:34:16.000Z","size":117,"stargazers_count":15,"open_issues_count":1,"forks_count":15,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-20T03:12:56.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pecl.php.net/package/xdiff","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php.png","metadata":{"files":{"readme":"README.API","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-07-04T21:13:46.000Z","updated_at":"2025-09-27T20:04:23.000Z","dependencies_parsed_at":"2023-01-11T20:28:40.846Z","dependency_job_id":"d85b4b0b-eaa8-4a62-82bb-4643a9622b60","html_url":"https://github.com/php/pecl-text-xdiff","commit_stats":{"total_commits":97,"total_committers":18,"mean_commits":5.388888888888889,"dds":0.5876288659793815,"last_synced_commit":"21857dbe38d052ff0313e7a97086afa8a2398a12"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/php/pecl-text-xdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-text-xdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-text-xdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-text-xdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-text-xdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php","download_url":"https://codeload.github.com/php/pecl-text-xdiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php%2Fpecl-text-xdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282720755,"owners_count":26716064,"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","status":"online","status_checked_at":"2025-11-04T02:00:05.887Z","response_time":62,"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":[],"created_at":"2024-09-24T19:58:00.413Z","updated_at":"2025-11-04T22:03:55.226Z","avatar_url":"https://github.com/php.png","language":"C","readme":"This extension requires libxdiff (http://www.xmailserver.org/xdiff-lib.html).\n\nAPI:\n\n* mixed xdiff_string_diff(string str1, string str2, [int context, [bool minimal]])\n\nMakes unified diff of strings str1 and str2. 'context' indicates how many\nlines of context you want to include in diff result. Set 'minimal' to true if\nyou want to minimalize size of diff (can take a long time).  Returns string\nwith result or false if an internal error happened.\n\n* bool xdiff_file_diff(string file1, string file2, string dest, [int context, [bool minimal]])\n\nMakes unified diff of files file1 and file2 and stores result in file dest.\n'context' indicates how many lines of context you want to include in diff\nresult. Set 'minimal' to true if you want to minimalize size of diff (can take\na long time).\n\n* mixed xdiff_string_diff_binary(string str1, string str2)\n\nMakes binary diff of strings str1 and str2.  Returns string with result or\nfalse if an internal error happened.\n\n* bool xdiff_file_diff_binary(string file1, string file2, string dest)\n\nMakes binary diff of files file1 and file2 and stores result in file dest.\nReturns string with result or false if an internal error happened.\n\n* string xdiff_string_patch(string file, string patch [, int flags, [string error]])\n\nPatches string 'file' with unified patch in 'patch' and returns a patched string.\n'flags' can be one of:\nXDIFF_PATCH_NORMAL - normal patch (default)\nXDIFF_PATCH_REVERSE - reverse patch\n\nIf 'error' is passed then error is stored inside this variable (it is passed by reference).\n\n* mixed xdiff_file_patch(string file, string patch, string dest [, int flags])\n\nPatches file 'file' with unified patch in file 'patch'.\n'flags' can be one of:\nXDIFF_PATCH_NORMAL - normal patch (default)\nXDIFF_PATCH_REVERSE - reverse patch\n\nReturns false if an internal error happened, string with rejected chunks of\npatch or true if patch was applied successfully.\n\n* string xdiff_string_patch_binary(string str, string patch)\n\nPatches string 'str' with binary patch 'patch'.\nReturns patched string or false if an internal error happened.\n\n* bool xdiff_file_patch_binary(string file, string patch, string dest)\n\nPatches file 'file' with binary patch in file 'patch' and stores result in file 'dest'.\nReturns true if file was patched successfully, false otherwise.\n\n* string xdiff_string_merge3(string str1, string str2, string str3 [, string error])\n\nMerges strings 'str1', 'str2' and 'str3' into one. Returns merged string or\nfalse if an internal error happened.  If 'error' is passed then error is\nstored inside this variable (it is passed by reference).\n\n* mixed xdiff_file_merge3(string file1, string file2, string file3, string dest)\n\nMerges files 'file1', 'file2' and 'file3' into one and stores result in file\n'dest'.  Returns true if merge was successful, string with rejected chunks if\nit was not or false if an internal error happened.\n\n\nvim:tw=78:et:\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-text-xdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp%2Fpecl-text-xdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp%2Fpecl-text-xdiff/lists"}