A PHP library for communicating with the Aspose.Diagram Cloud API

19.10 2019-10-31 03:14 UTC

This package is not auto-updated.

Last update: 2020-03-26 07:47:18 UTC


Aspose.Diagram Cloud helps you develop diagrams manipulation applications. Our REST API based Diagram Cloud SDK allows your applications to work with Microsoft Visio Object Model.

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

To use this SDK, you will need App SID and App Key which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).


Support Import Formats

  • VSDX
  • VDX
  • VSD
  • VSX
  • VTX
  • VSSX
  • VSTX
  • VSDM
  • VSSM
  • VSTM
  • VDW
  • VSS
  • VST

Support Export Formats

  • VSDX
  • VDX
  • VSX
  • VTX
  • VSSX
  • VSTX
  • VSDM
  • VSSM
  • VSTM
  • PDF
  • XPS
  • SWF
  • SVG
  • EMF
  • JPEG
  • PNG
  • BMP
  • TIFF
  • HTML

Supported Operations

  • Convert document format
  • Create new document
  • Upload document and save it with supported format
  • Download document with supported format

For the complete list of use-cases, please refer to common operations format support map to see what you can achieve!

Storage API support

Since version 19.10, SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!

It gives you an ability to:

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
  • Create, copy, move and delete folders
  • Copy and move files and folders accross separate storages in scope of a single operation
  • Check if certain file, folder or storage exists


Please, add the following packagist to your project.


diagram-sdk-php is available on Packagist as the diagram-sdk-php package. Run the following command:

composer require aspose/diagram-sdk-php

To use the SDK, use Composer's autoload:



Please, look at Examples document for basic usage or use the Examples folder for more sophisticated scenarios.

Aspose Cloud-hosted service VS on-premise deployment (experimental feature)

Starting from v19.10, you can choose either to use Aspose Cloud-hosted image processing service (the standard way) or the Docker image from Docker Hub deployed on-premise to serve the requests. The details about key differences and deployment process will be described on the dedicated Docker Hub page as soon as it's released.

To succeed with your on-premise service usage by the SDK, you need to:

  1. Use the new API class constructor with grantType parameter, clientId and clientSecret parameters.
$diagramApi = new DiagramApi(self::$grantType,self::$clientId,self::$clientSecret);
  1. Set storage or storageName parameters for each request where they're present (mandatory!).


Tests are intended for internal usage only.


All Aspose.Diagram Cloud SDKs, helper scripts and templates are licensed under MIT License.

Contact Us

Your feedback is very important to us. Please feel free to contact via