If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.

Kurulum
Paket Packagist’te mevcut‘dir ve aşağıdaki komut çalıştırılarak Composer aracılığıyla kurulabilir:
composer require groupdocscloud/groupdocs-merger-cloud

Gereksinimler
- PHP 8.1 veya üzeri
- Composer
- PHP uzantıları — curl, json, mbstring
- GroupDocs Cloud kimlik bilgileri — Client ID and Client Secret Kontrol Panelinden
Bağımlılıklar
SDK aşağıdaki paketleri gerektirir:
| Package | Constraint |
|---|
| guzzlehttp/guzzle | ^6.5.8 or ^7.4.5 |
| ext-curl | * |
| ext-json | * |
| ext-mbstring | * |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Merger Cloud’u kullanmak için, GroupDocs.Cloud Dashboard adresinden kaydolun ve Müşteri Kimliğinizi ve Müşteri Sırrınızı alın.
API’yi başlat
PHP için GroupDocs.Merger Cloud SDK’yı kullanmaya başlamak için aşağıdaki kodu kullanın:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
$configuration = new GroupDocs\Merger\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");
$documentApi = new GroupDocs\Merger\DocumentApi($configuration);
Tam örneği CommonUtils.php dosyasında görün.
Birden fazla belgeyi birleştirme
Başlatıldıktan sonra, bulut depolama alanındaki Word belgelerini tek bir dosyada birleştirmek için bu temel örneği kullanın.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Merger\Model;
use GroupDocs\Merger\Model\Requests;
$configuration = new GroupDocs\Merger\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");
$documentApi = new GroupDocs\Merger\DocumentApi($configuration);
$fileInfo1 = new Model\FileInfo();
$fileInfo1->setFilePath("WordProcessing/four-pages.docx");
$item1 = new Model\JoinItem();
$item1->setFileInfo($fileInfo1);
$fileInfo2 = new Model\FileInfo();
$fileInfo2->setFilePath("WordProcessing/one-page.docx");
$item2 = new Model\JoinItem();
$item2->setFileInfo($fileInfo2);
$options = new Model\JoinOptions();
$options->setJoinItems([$item1, $item2]);
$options->setOutputPath("Output/joined.docx");
$request = new Requests\joinRequest($options);
$response = $documentApi->join($request);
echo "Output file path: " . $response->getPath() . "\n";
Tam örneği JoinMultipleDocuments.php dosyasında görün.
Belgeyi Tek Sayfalara Böl
Bu örnek, bir Word belgesini 1 ve 3. sayfalar için ayrı dosyalara böler.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Merger\Model;
use GroupDocs\Merger\Model\Requests;
$configuration = new GroupDocs\Merger\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");
$documentApi = new GroupDocs\Merger\DocumentApi($configuration);
$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("WordProcessing/sample-10-pages.docx");
$options = new Model\SplitOptions();
$options->setFileInfo($fileInfo);
$options->setOutputPath("Output/split-document");
$options->setPages([1, 3]);
$options->setMode(Model\SplitOptions::MODE_PAGES);
$request = new Requests\splitRequest($options);
$response = $documentApi->split($request);
echo "Documents count: " . count($response->getDocuments()) . "\n";
Tam örneği SplitToSinglePages.php dosyasında görün.
Belge Sayfalarını Döndür
Bu örnek, bir PDF belgesindeki seçili sayfaları döndürür.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Merger\Model;
use GroupDocs\Merger\Model\Requests;
$configuration = new GroupDocs\Merger\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");
$pagesApi = new GroupDocs\Merger\PagesApi($configuration);
$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("Pdf/ten-pages.pdf");
$options = new Model\RotateOptions();
$options->setFileInfo($fileInfo);
$options->setOutputPath("Output/rotate-pages.pdf");
$options->setPages([2, 4]);
$options->setMode(Model\RotateOptions::MODE_ROTATE90);
$request = new Requests\rotateRequest($options);
$response = $pagesApi->rotate($request);
echo "Output file path: " . $response->getPath() . "\n";
Tam örneği RotatePages.php dosyasında görün.
Desteklenen Dosya Türlerini Alın
Desteklenen dosya türlerini alın.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$configuration = new GroupDocs\Merger\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");
$infoApi = new GroupDocs\Merger\InfoApi($configuration);
$response = $infoApi->getSupportedFileFormats();
foreach ($response->getFormats() as $format) {
echo $format->getFileFormat() . " - " . $format->getExtension() . "\n";
}
Tam örneği GetSupportedFileTypes.php dosyasında görün.
GitHub’daki Örnekler
GroupDocs.Merger Cloud PHP Examples deposu aşağıdakileri kapsayan çalıştırılmaya hazır örnekler içerir:
| Category | Examples |
|---|
| Bilgi | Desteklenen dosya türleri, belge bilgileri, lisans tüketimi |
| Belge İşlemleri | Birden çok belgeyi birleştirin, çapraz formatta birleştirin, sayfaları birleştirin, görüntüleri birleştirin, sürekli Word birleştirmesi, sayfaları karıştırın, belgeleri bölün, önizleyin, eki içe aktarın |
| Sayfa İşlemleri | Sayfaları çıkarın, sayfaları taşıyın, sayfaları kaldırın, sayfaları döndürün, sayfaları değiştirin, yönü değiştirin |
| Güvenlik Operasyonları | Şifre ekleme, kaldırma ve güncelleme; şifre korumasını kontrol edin |
Örnekler nasıl çalıştırılır
- örnek deposunu kopyalayın veya indirin
Examples/CommonUtils.php‘i düzenleyin ve ClientId ile ClientSecret ayarlarınızı yapınExamples dizinine gidincomposer update‘ı çalıştırınphp RunExamples.php komutunu çalıştırın
Daha fazla ayrıntı için Getting Started adresini ziyaret edin.

Document Merging API | PHP Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | Secure API Access | Document Joining | Document Manipulation API | Merge Multiple Formats | Cross-platform API