Build content comparison applications with PHP Cloud SDK for comparison REST API. Compare, find differences, accept or reject changes in files of popular formats.
Start Free TrialGet started using GroupDocs.Comparison Cloud API features in your PHP applications with the help of our GroupDocs.Comparison Cloud SDK for PHP. It provides a one-stop-shop solution for comparing documents in all common business formats. Supported file types include PDF, Microsoft Word documents, Excel spreadsheets, PowerPoint presentations, plain text, and others.
Using GroupDocs.Comparison Cloud API, you can compare documents and get the list of changes, with just a few lines of code.
//Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
$configuration = new Configuration();
$configuration->setAppSid($sid);
$configuration->setAppKey($key);
$apiInstance = new ChangesApi($configuration);
$comparisonRequest = new ComparisonRequest($sourceFile,$targetFiles,$settings,$changes);
$request = new PostCategoriesChangesRequest($comparisonRequest,$categoriesType);
$response = $apiInstance->postCategoriesChanges($request);
Irrespective of the file format, GroupDocs.Comparison Cloud API is able to identify changes in literally all document elements, including texts, lines, boxes, margins, etc. This allows users to get complete details of all changes made to the document: texts, font types and styles, page headers, footers, and overall layout – all are precisely analyzed and reported when differences are found.
GroupDocs.Comparison Cloud provides two main resources (Document and Changes) which allows retrieving compared documents (as file or array of images) or its changes. Also, it provides the ability to update (accept or reject) retrieved changes.
GroupDocs.Comparison Cloud API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the REST API calls and lets you use GroupDocs.Comparison Cloud API features in a native way for your preferred language.