PHP code example of groupdocscloud / groupdocs-conversion-cloud
1. Go to this page and download the library: Download groupdocscloud/groupdocs-conversion-cloud 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/ */
groupdocscloud / groupdocs-conversion-cloud example snippets
O: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is XXXX-XXXX-XXXX-XXXXXXXXXXXX");
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
$api = new GroupDocs\Conversion\InfoApi($configuration);
try {
$request = new GroupDocs\Conversion\Model\Requests\GetSupportedConversionTypesRequest();
$response = $api->getSupportedConversionTypes($request);
foreach($response as $key => $format) {
echo $format->getSourceFormat();
}
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}
shell
php composer.phar install ./vendor/bin/phpunit