groupdocscloud/groupdocs-assembly-cloud
Composer 安装命令:
composer require 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.
README 文档
README
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
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-08