This repository contains GroupDocs.Merger Cloud SDK for PHP source code.

23.10 2023-10-23 09:52 UTC


This repository contains GroupDocs.Merger Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Merger Cloud REST APIs in your PHP applications.

GroupDocs.Merger Cloud allows you to merge documents and manipulate document structure across wide range of supported document types - PDF, DOCX/DOC, PPTX/PPT, XLSX/XLS, VSDX/VSD, ODT, ODS, ODP, HTML, EPUB and many others. Merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page orientation, manage document password and perform other manipulations with GroupDocs.Merger Cloud API.


  • PHP 5.5 or later


To use SDK you need AppSID and AppKey authorization keys. You can get your AppSID and AppKey at (free registration is required).

Installation & Usage


The package is available at Packagist and it can be installed via Composer by executing following command:

composer require groupdocscloud/groupdocs-merger-cloud

Or you can install SDK via Composer directly from this repository, add the following to composer.json:

  "repositories": [
      "type": "git",
      "url": ""
  "require": {
    "groupdocscloud/groupdocs-merger-cloud": "*"

Then run composer install

Manual Installation

Clone or download this repository, then run composer install in the root directory to install dependencies and include autoload.php into your code file:



To run the unit tests set your AppSID and AppKey in json.config and execute following commands:

php composer.phar install

Getting Started

Please follow the installation procedure and then run the following:


require_once(__DIR__ . '/vendor/autoload.php');

//TODO: Get your AppSID and AppKey at (free registration is required).
$configuration = new GroupDocs\Merger\Configuration();

$infoApi = new GroupDocs\Merger\InfoApi($configuration); 

try {
    $response = $infoApi->getSupportedFileFormats();

    foreach ($response->getFormats() as $key => $format) {
        echo $format->getFileFormat() . " - " .  $format->getExtension(), "\n";
} catch (Exception $e) {
    echo  "Something went wrong: ",  $e->getMessage(), "\n";



GroupDocs.Merger Cloud SDK for PHP is licensed under MIT License.


Contact Us

Your feedback is very important to us. Please feel free to contact us using our Support Forums.