groupdocscloud/groupdocs-assembly-cloud

This repository contains GroupDocs Assembly Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Assembly Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost.

21.1.0 2021-02-16 08:59 UTC

README

GroupDocs.Assembly Cloud SDK for PHP

This repository contains GroupDocs.Assembly Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Assembly Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost.

See API Reference for full API specification.

Key Features

  • API to Define Templates, Fetch Data Source, Insert Data in Template & Generate on the fly Reports.

How to use the SDK?

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get Packagist distribution (recommended).

Prerequisites

To use GroupDocs.Assembly for Cloud PHP SDK you need to register an account with GroupDocs Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.

Installation

Via Composer:

groupdocs-assembly-cloud is available on Packagist as the groupdocs-assembly-cloud package. Run the following command:

composer require groupdocscloud/groupdocs-assembly-cloud

To use the SDK, use Composer's autoload:

require_once('vendor/autoload.php');

Sample usage

$assembly = new AssemblyApi($creds["AppSid"], $creds["AppKey"], $creds["BaseUrl"]);
$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);

Tests contain various examples of using the SDK. Please put your credentials into Configuration.

Dependencies

  • PHP 5.6 or later
  • referenced packages (see here for more details)

Contact Us

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial