Document Viewing REST API & PHP Cloud SDK

Develop powerful document rendering tools in PHP using REST APIs to accurately view business documents in all popular file formats.

Start Free Trial
GroupDocs.Viewer Cloud SDK for PHP

GroupDocs.Viewer Cloud SDK for PHP

 
 

Quickly get started using GroupDocs.Viewer Cloud with the help of GroupDocs.Viewer Cloud SDK for PHP. The SDK is a modern, open-source PHP library that makes it easy to integrate GroupDocs.Viewer Cloud API in your own PHP applications. With the SDK, you can benefit from all the features of the API in a much easier and quicker manner. The SDK provides an abstraction over the "low-level" details of making requests and handling responses, for a simpler and more intuitive coding experience. 

Previous Next
 

Advanced Document Viewer REST API Features

 

 

Render documents as HTML5

 

Render documents as image

 

Rotate, reorder & watermark pages

 

Render documents as PDF

 

Render document attachments

 

Get document information

Quick and Reliable Document Presentation

The cloud-based viewer API has the ability to display different document formats without compromising on the performance. Features of the API can be used via the SDK, with just a few lines of code.

Quickly render any document - PHP


//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
// Initializing and setting configuration
$configuration = new GroupDocs\Viewer\Configuration();
$configuration->setAppSid($AppSID);
$configuration->setAppKey($AppKey);
$configuration->setApiBaseUrl($ApiBaseURL);

$apiInstance = new GroupDocs\Viewer\ViewerApi($configuration);
$viewOptions = new GroupDocs\Viewer\Model\ViewOptions();

$fileInfo = new GroupDocs\Viewer\Model\FileInfo();
$fileInfo->setFilePath("viewerdocs\\document.docx");
$fileInfo->setPassword("password");
$fileInfo->setStorageName($StorageName);
$viewOptions->setFileInfo($fileInfo);

$request = new GroupDocs\Viewer\Model\Requests\CreateViewRequest($viewOptions);
$response = $apiInstance->createView($request);

Quickly Get Started with Document Viewing REST API

Get started using GroupDocs.Viewer Cloud REST API with the GroupDocs.Viewer Cloud SDK for PHP. It facilitates the users and speeds up the development of applications written in PHP while taking care of low-level details of making requests and handling responses and lets the users focus on writing code specific to their particular project. 

Easy Customization

GroupDocs.Viewer Cloud SDK is 100% tested and out-of-the-box running. The SDK is open source and has an MIT license. You can use it, and even customize it for absolutely free of any charge.

 

Support and Learning Resources