aspose / aspose-cad-cloud
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.
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.5.8
Requires (Dev)
- behat/behat: 3.4.*
- friendsofphp/php-cs-fixer: 2.10.*
- phpunit/phpunit: ^8.5.39
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-11-06 22:01:39 UTC
README
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
- Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
- Minimum requirements. This SDK requires PHP 5.6 or later.
- 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.5.2" } }
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;
- 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 - https://hub.docker.com/r/aspose/cad-cloud. The details about key differences and deployment process is described on the dedicated Docker Hub page.
Prerequisites
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 https://dashboard.aspose.cloud (free registration required). $config = new Configuration(); $config->setAppKey('MY_CLIENT_SECRET')->setAppSid('MY_CLIENT_ID'); $api = new CadApi($config, null); $request = new Requests\PostDrawingSaveAsRequest(file_get_contents("d:\sample.dwg"), "png", null, null); $stream = $api->postDrawingSaveAs($request);
Dependencies
Licensing
All Aspose.CAD Cloud SDKs, helper scripts and templates are licensed under MIT License.
Aspose.CAD Cloud SDKs in Popular Languages
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial|