This repository contains GroupDocs.Annotation Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Annotation Cloud REST APIs in your PHP applications.
- PHP 5.5 or later
To use SDK you need AppSID and AppKey authorization keys. You can get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
The package is available at Packagist and it can be installed via Composer by executing following command:
composer require groupdocscloud/groupdocs-annotation-cloud
Or you can install SDK via Composer directly from this repository, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/groupdocs-annotation-cloud/groupdocs-annotation-cloud-php.git"
}
],
"require": {
"groupdocscloud/groupdocs-annotation-cloud": "*"
}
}
Then run composer install
Clone or download this repository, then run composer install
in the root directory to install dependencies and include autoload.php
into your code file:
require_once('/path/to/groupdocs-annotation-cloud-php/vendor/autoload.php');
To run the unit tests set your AppSID and AppKey in json.config and execute following commands:
php composer.phar install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
$configuration = new GroupDocs\Annotation\Configuration();
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
$infoApi = new GroupDocs\Annotation\InfoApi($configuration);
try {
$response = $infoApi->getSupportedFileFormats();
foreach ($response->getFormats() as $key => $format) {
echo $format->getFileFormat() . " - " . $format->getExtension(), "\n";
}
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}
?>
GroupDocs.Annotation Cloud SDK for PHP is licensed under MIT License.
+Website +Product Home +Documentation +Free Support Forum +Blog
Your feedback is very important to us. Please feel free to contact us using our Support Forums.