Compare Documents via PHP Cloud SDK
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 Trial
GroupDocs.Comparison Cloud SDK for PHP
Get 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.
If you do not want to use any of our SDKs or the required SDK is not available at the moment, you can still easily get started with GroupDocs.Comparison REST API while using your favorite language & platform.
GroupDocs.Comparison Cloud SDK for PHP requires PHP 5.5 or later
Supported File Formats
Document comparison Cloud API supported formats.
- Word: DOC, DOCX, DOT, DOTX, DOCM, DOTM, RTF
- Excel: XLS, XLSX, XLSM, XLSB, XLS2003
- PowerPoint: PPT, PPTX, PPS, PPSX
- Outlook: EML, EMLX, MSG
- OpenDocument: ODT, OTT, ODS, ODP, OTP
- Web: HTM, HTML, MHTML
- Fixed Layout: PDF
- Image Files: JPEG, BMP, PNG, GIF
- Text: TXT and other text formats with different extensions
- Others: DJVU, DICOM, PDF, CSV
Advanced Document Comparison REST API Features
Multiple file formats support
Retrieve compared documents
Accurate content comparison
Accept or reject retrieved changes
Get Changes from Compared Documents
Using GroupDocs.Comparison Cloud API, you can compare documents and get the list of changes, with just a few lines of code.
Get changes from compared documents - PHP
//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,$catergoriesType);
$response = $apiInstance->postCategoriesChanges($request);
Accurate Content Comparison
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.
Advanced Document Handling
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.
GroupDocs.Comparison Cloud also offers individual document comparison SDKs for other popular languages as listed below: