PHP Cloud SDK for Document Conversion

REST API for developers to convert documents and images among supported file formats. Allows seamless integration into your applications.

  • GroupDocs.Conversion Cloud SDK for cURL
  • GroupDocs.Conversion Cloud SDK for .NET
  • GroupDocs.Conversion Cloud SDK for Java
  • GroupDocs.Conversion Cloud SDK for Python
  • GroupDocs.Conversion Cloud SDK for Ruby
  • GroupDocs.Conversion Cloud SDK for Node.js
  • GroupDocs.Conversion Cloud SDK for Android
  • GroupDocs.Conversion Cloud SDK for Go
Start Free Trial

The GroupDocs.Conversion Cloud SDK for PHP has been developed to help you get started with our document conversion REST API, which lets you seamlessly convert your documents to any format you need. With this single API, you can convert back and forth between over 50 types of documents and images, including all Microsoft Office and OpenDocument file formats, PDF documents, HTML, CAD, raster images and many more.

How to convert a file on PHP

  • Create an instance of Configuration.
  • Set credentials using setAppSid and setAppKey methods of Configuration instance.
  • Create an instance of ConversionApi using instance of Configuration.
  • Create an instance of ConvertSettings.
  • Set input file using ConvertSettings->setFilePath method.
  • Set desired output format using ConvertSettings->setFormat method.
  • Set output directory using ConvertSettings->setOutputPath method.
  • Create an instance of ConvertDocumentRequest using ConvertSettings instance.
  • Use the method ConversionApi->convertDocument to start conversion.
  • Download the converted file using the URL from getUrl method.

Frequently Asked Questions

I want to create my own PHP application to convert documents?

Check out GroupDocs.Conversion Cloud SDK for PHP at GitHub if you are looking for the source code to convert file in the Cloud.

Can I try GroupDocs.Conversion REST APIs on PHP for free?

You can try GroupDocs.Conversion Low-Code PHP APIs without any limitations.

I do not want to upload my confidential files anywhere? What are my options?

GroupDocs.Conversion Cloud is also available as Docker image which can be used to self-host the service. Or you may build your own services using GroupDocs.Conversion High-code APIs which currently drive our REST APIs.

Advanced Document Conversion API Features

Convert across all common formats

Convert page by page or custom range of pages

Watermark pages

Get high quality output files

Password protect output document

APIs are secured and require authentication

Quick and Reliable Document Conversion

GroupDocs.Conversion REST API has the capability to convert documents to any of the supported formats, Using the SDK for PHP, we can perform this task with just a few lines of code.

Conversion to any format with storage URL output - PHP

//Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
$configuration = new GroupDocs\Conversion\Configuration();
$configuration->setAppSid("xxxx-xxxx-xxxx");
$configuration->setAppKey("xxxxxxxxxxxxx");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$conversionApi = new GroupDocs\Conversion\ConversionApi($configuration);
$settings = new GroupDocs\Conversion\Model\ConvertSettings();

$settings->setStorageName("xxxxxxx xxxx");
$settings->setFilePath("document.docx");
$settings->setFormat("xlsx");
$settings->setOutputPath("converted docs");

$request = new GroupDocs\Conversion\Model\Requests\ConvertDocumentRequest($settings);
$response = $conversionApi->convertDocument($request);
echo "Converted document can be downloaded from: ", $response[0]->getUrl();

Get Started in No Time

GroupDocs.Conversion Cloud API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us. If you use SDK, it hides the REST API calls and lets you use GroupDocs.Conversion Cloud API features in a native way for your preferred language.

Security and Authentication

The GroupDocs.Conversion Cloud API is secured and requires authentication. Users need to register at GroupDocs Cloud and get their app access key ID (appSID) and app secret access key. Authenticated requests require a signature and AppSID query parameters or OAuth 2.0 authorization header.

Easy Customization

GroupDocs.Conversion 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 charge.

Convert Documents using GroupDocs.Conversion

PCL to DOC IGS to EMF NUMBERS to TIFF NSF to DOTX XLAM to XLS BMP to EPUB VSTM to PNG 7Z to HTML MHT to DOTM TXT to RTF ODS to DIF MHTML to PSB PDF to WMF XPS to HTML DOCX to PSD PPS to OTP XER to PDF CGM to TIFF ONE to ODP AI to DOT Outlook to MHTML JSON to DOTX ODT to EMF GZ to MHT CDR to PSD ODG to PDF GIF to PPSM HTML to POTM NSF to ODS DWG to EMF CF2 to JPG OTP to PNG 7Z to JPEG ODG to TXT MBOX to DOCX SXC to XML Outlook to WEBP SQL to ODS GIF to ODT MD to TXT PPTX to HTM IFC to ODP MPT to MHT NSF to MHTML DWG to TIFF EPUB to MHTML EMLX to EML DWFX to ODP JPF to JPEG PDF to PSD DJVU to GIF SXC to XLSM ODG to ODS JPG to DICOM TIF to TXT VSSX to EMF TIFF to EMF TEX to EMF XLSX to XLTX TAR to ODT AI to XLSX BMP to TGA XER to DOTX PDF to DOT OXPS to PNG PSD to ODS ONE to PSD POT to SVGZ IFC to CSV AI to TGA EML to TXT CGM to HTML XLSM to TXT STL to WMF OXPS to ODP PPSX to DICOM EMF to TGA CDR to PPT ODP to PPTX PPS to TSV RTF to SVG ODT to WEBP TIF to DICOM BMP to DCM MKV to AVI SVG to JPG RTF to DCM DOC to DOTM TIFF to PPTX ZIP to EPUB DWG to JP2 EPS to MD TSV to HTML MPT to TIFF JP2 to TEX VSSM to PSD DGN to WMF XER to XLS PLT to ODP STL to JPG 7Z to PSD MHTML to MD VSDX to DCM MOBI to PPTX RAR to MD MOBI to EPUB DCM to PNG PST to XLS CF2 to EMF ZIP to PPS NSF to TXT IGS to PowerPoint TIFF to WEBP TAR to ODS PSB to PDF PDF to TIFF VST to VSTX EPUB to PPTX XPS to DICOM NUMBERS to HTML MHTML to DOC SVG to ODP NSF to DIF RAR to FODS EMF to RTF ZIP to ODS DWF to PNG DOCM to POTX MBOX to SVG CF2 to HTML DOC to OTP JP2 to DIF IGS to JPEG DWG to XPS XLSX to MD ZIP to PPSM PNG to OTT MD to JPEG DWG to MHTML DWF to MHTML OTG to JPEG DICOM to TSV DWT to ODP EML to HTML VST to RTF ODS to ICO PDF to DOCX EPUB to EMF PLT to PSB OXPS to DOTM

Support and Learning Resources

GroupDocs.Conversion Cloud also offers individual document rendering SDKs for other popular languages as listed below:

  English
9a86c5d56