PHP code example of aspose / 3d-sdk-php

1. Go to this page and download the library: Download aspose/3d-sdk-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aspose / 3d-sdk-php example snippets




	// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration 
	$name = "template3d.pdf";
	
	$saveOpt = new PlySaveOption();
	$saveOpt->setSaveFormat(SaveFormat::PLY);
	$saveOpt->setFileSystem(new FileSystem());
	$saveOpt->getFileSystem()->setFileSystemType(FileSystemType::MemoryFileSystem);
	
	$positionComponents = array("x", "y", "z");
	$saveOpt->setPositionComponents($positionComponents);
	
	$newfilename = "output.ply";;
	$folder = "3DTest";
	$isOverwrite = "true";
	$storage = "My_Storage_Name";
	
	$result = $threedApi->postConvertByOpt($name, $saveOpt, $newfilename, $folder, $isOverwrite, $storage);