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-assembly-cloud

Gereksinimler
- PHP 5.5 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.2 |
| ext-curl | * |
| ext-json | * |
| ext-mbstring | * |
Hızlı Başlangıç
API kimlik bilgilerinizi alın
GroupDocs.Assembly 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.Assembly 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
$assembly = new GroupDocs\Assembly\AssemblyApi("YourClientId", "YourClientSecret");
$assembly->getConfig()->setHost("https://api.groupdocs.cloud");
Daha fazla ayrıntı için BaseTestContext.php dosyasına bakın.
Bir şablondan belge birleştirin
Başlatıldıktan sonra, GroupDocs Cloud’da zaten depolanmış bir şablondan ve yerel bir veri dosyasından belge oluşturmak için bu temel örneği kullanın.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Assembly\Model;
use GroupDocs\Assembly\Model\Requests;
$assembly = new GroupDocs\Assembly\AssemblyApi("YourClientId", "YourClientSecret");
$assembly->getConfig()->setHost("https://api.groupdocs.cloud");
$reportData = file_get_contents("FileWithData");
$assembleData = new Model\AssembleOptions(array(
"template_file_info" => new Model\TemplateFileInfo(array("file_path" => "FileNameInStorage")),
"save_format" => "pdf",
"report_data" => $reportData
));
$request = new Requests\AssembleDocumentRequest($assembleData);
$result = $assembly->assembleDocument($request);
echo "Assembled document size: " . $result->getSize() . "\n";
Daha fazla ayrıntı için SDK README dosyasına bakın.
Bir Şablon Yükleyin ve PDF’ye Birleştirin
Bu örnek, TableFeatures.odt dosyasını yükler, onu TableData.json ile birleştirir ve sonuç boyutunu kontrol eder.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Assembly\Model;
use GroupDocs\Assembly\Model\Requests;
$assembly = new GroupDocs\Assembly\AssemblyApi("YourClientId", "YourClientSecret");
$assembly->getConfig()->setHost("https://api.groupdocs.cloud");
$file = __DIR__ . "/TableFeatures.odt";
$remotePath = "Temp/SdkTests/php/GroupDocs/Assembly/TableFeatures.odt";
$assembly->uploadFile(new Requests\UploadFileRequest($file, $remotePath));
$reportData = file_get_contents(__DIR__ . "/TableData.json");
$assembleData = new Model\AssembleOptions(array(
"template_file_info" => new Model\TemplateFileInfo(array("file_path" => $remotePath)),
"save_format" => "pdf",
"report_data" => $reportData
));
$request = new Requests\AssembleDocumentRequest($assembleData);
$result = $assembly->assembleDocument($request);
echo "Assembled document size: " . $result->getSize() . "\n";
Daha fazla ayrıntı için AssemblyApiTests.php dosyasına bakın.
Desteklenen birleştirme dosya formatlarını alın.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Assembly\Model\Requests;
$assembly = new GroupDocs\Assembly\AssemblyApi("YourClientId", "YourClientSecret");
$assembly->getConfig()->setHost("https://api.groupdocs.cloud");
$response = $assembly->getSupportedFileFormats(new Requests\GetSupportedFileFormatsRequest());
foreach ($response->getFileFormats()->getFormats() as $format) {
echo $format->getFileFormat() . " - " . $format->getExtension() . "\n";
}
Daha fazla ayrıntı için GetSupportedFileFormatsRequest.php dosyasına bakın.
Bulut Depolamasından Dosya İndirin
Daha önce depolama alanına yüklenmiş bir dosyayı indirin.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use GroupDocs\Assembly\Model\Requests;
$assembly = new GroupDocs\Assembly\AssemblyApi("YourClientId", "YourClientSecret");
$assembly->getConfig()->setHost("https://api.groupdocs.cloud");
$request = new Requests\DownloadFileRequest("Temp/SdkTests/php/GroupDocs/Assembly/TableFeatures.odt");
$result = $assembly->downloadFile($request);
echo "Downloaded bytes: " . $result->getSize() . "\n";
Daha fazla ayrıntı için DownloadFileRequest.php dosyasına bakın.
GitHub’daki Örnekler
GroupDocs.Assembly Cloud PHP SDK deposu, aşağıdakileri kapsayan README örneğini ve testleri içerir:
| Category | Examples |
|---|
| Belge Birleştirme | Depolama alanındaki bir şablondan ve yerel bir veri dosyasından belge birleştirin |
| Testler | TestData/TableFeatures.odt dosyasını yükleyin ve TestData/TableData.json ile PDF’ye birleştirin |
| Dosya ve format API’si | Desteklenen dosya formatları, yükleme ve indirme |
Örnekler nasıl çalıştırılır
- Paketi
composer require groupdocscloud/groupdocs-assembly-cloud ile kurun - Composer autoload dosyasını
require_once('vendor/autoload.php'); ile dahil edin - Kimlik bilgilerinizi
Settings/servercreds.json dosyasına koyun - Örnek kullanımı README dosyasından çalıştırın. Diğer örnekler tests içindedir
Daha fazla ayrıntı için Getting Started adresini ziyaret edin.

Document Automation | PHP Cloud API | GroupDocs.Assembly Cloud | REST API | Document Generation | Template Assembly | Report Generation | Mail Merge | JSON Data | Dynamic Data Merging | PDF Generation | Cloud Storage | File Upload API | Supported File Formats | Secure API Access