This repository contains Aspose Cloud SDK for PHP source code. Aspose Cloud SDK for PHP lets PHP developers convert and process a variety of CAD and BIM file formats in the cloud quickly and easily.

dev-master 2024-05-20 20:15 UTC

This package is not auto-updated.

Last update: 2024-05-20 20:20:22 UTC


Packagist Downloads Packagist PHP Version Support GitHub license GitHub last commit

AutoCAD File Processing via PHP Cloud REST API

Aspose.CAD Cloud is a true REST API that enables you to perform a wide range of CAD and BIM drawings processing operations including manipulation, export and conversion in a cloud, with zero initial costs.

This repository contains Aspose.CAD Cloud PHP SDK source code which is written in PHP. This SDK allows you to work with Aspose.CAD Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost and gain all benefits of strong types and IDE highlights.

CAD Processing Features

  • Export CAD drawings to other file formats.
  • Get image properties of a CAD drawing.
  • Change the scale of an AutoCAD sketch.
  • Flip and rotate a CAD image.
  • Upload or download CAD drawings to the cloud storage.
  • Copy, move, delete CAD files from the cloud storage.

Read & Write CAD Formats

DXF (R12/2007/2010)

Save CAD As

Fixed Layout: PDF (as a vector and as a raster) Images: BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF, WMF

Read CAD Formats

DWG (13, 14, 2000, 2004), DWG (2010, 2013, 2014), DWG (2015, 2017, 2018), DWT (13, 14, 2000, 2004), DWT (2010, 2013, 2014), DWT (2015, 2017, 2018), DWF, DGN v7, IGES (IGS), PLT, Industry Foundation Classes (IFC), STereoLithography (STL)

Look at API Reference for full API specification.

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

Detailed official documentation can be found at the following link.

Getting Started

  1. Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
  2. Minimum requirements. This SDK requires PHP 5.6 or later.
  3. Install Aspose.CAD Cloud PHP SDK. Please, add the following Packagist package to your project.

Please, add the following to your composer.json as a dependency.

    "require": {
        "aspose/aspose-cad-cloud": ">=24.1"

Import the dependencies to your code as follows.

use \Aspose\CAD\CadApi;
use \Aspose\CAD\Configuration;
use \Aspose\CAD\Model;
use \Aspose\CAD\Model\Requests;
  1. Using the SDK. The best way to become familiar with how to use the SDK is to read the Developer Guide. The Getting Started Guide will help you to become familiar with the common concepts.

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). For more details, please visit our documentation website.

Aspose.CAD Cloud-hosted service VS on-premise deployment

You can choose either to use Aspose.CAD Cloud-hosted drawings 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 is described on the dedicated Docker Hub page.


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

The solution is updated using code generator.

Convert DWG to PNG in PHP

	// Get your ClientId and ClientSecret from (free registration required).

	$config = new Configuration();
	$api = new CadApi($config, null);
	$request = new Requests\PostDrawingSaveAsRequest(file_get_contents("d:\sample.dwg"), "png", null, null);
	$stream = $api->postDrawingSaveAs($request);



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

Aspose.CAD Cloud SDKs in Popular Languages

.NET Java PHP Python Ruby Node.js
GitHub GitHub GitHub GitHub GitHub GitHub
NuGet Maven Composer PIP GEM NPM

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