PHP code example of aspose / cells-sdk-php
1. Go to this page and download the library: Download aspose/cells-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 / cells-sdk-php example snippets
Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PutConvertWorkbookRequest;
#get CellsCloudClientId from https://dashboard.aspose.cloud/#/applications
#get CellsCloudClientSecret from https://dashboard.aspose.cloud/#/applications
$cellsApi = new CellsApi(getenv("CellsCloudClientId"),getenv("CellsCloudClientSecret"));
$response = $cellsApi->putConvertWorkbook(new PutConvertWorkbookRequest( 'EmployeeSalesSummary.xlsx', 'pdf'));
copy($response->getPathname(),"EmployeeSalesSummary.pdf");