GroupDocs.Signature Cloud SDK for PHP
This repository contains GroupDocs.Signature Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Signature Cloud REST APIs in your PHP applications., (*1)
Dependencies
Authorization
To use SDK you need AppSID and AppKey authorization keys. You can your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required)., (*2)
Installation & Usage
Composer
The package is available at Packagist and it can be installed via Composer by executing following command:, (*3)
composer require groupdocscloud/signature-sdk-php
Or you can install SDK via Composer directly from this repository, add the following to composer.json
:, (*4)
{
"repositories": [
{
"type": "git",
"url": "https://github.com/groupdocs-signature-cloud/groupdocs-signature-cloud-php.git"
}
],
"require": {
"groupdocscloud/signature-sdk-php": "*"
}
}
Then run composer install
, (*5)
Manual Installation
Clone or download this repository, then run composer install
in the root directory to install dependencies and include autoload.php
into your code file:, (*6)
require_once('/path/to/groupdocs-signature-cloud-php/vendor/autoload.php');
Tests
To run the unit tests set your AppSID and AppKey in json.config and execute following commands:, (*7)
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:, (*8)
setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
$signatureApi = new GroupDocs\Signature\SignatureApi($configuration);
try {
$request = new GroupDocs\Signature\Model\Requests\GetSupportedFileFormatsRequest();
$response = $signatureApi->getSupportedFileFormats($request);
foreach ($response->getFormats() as $key => $format) {
echo $format->getFileFormat() . " - " . $format->getExtension(), "\n";
}
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}
?>
Licensing
GroupDocs.Signature for Cloud SDK for PHP is licensed under MIT License., (*9)
Resources
Your feedback is very important to us. Please feel free to contact us using our Support Forums., (*10)