groupdocscloud/comparison-sdk-php
最新稳定版本:26.5
Composer 安装命令:
composer require groupdocscloud/comparison-sdk-php
包简介
This repository contains GroupDocs.Comparison Cloud SDK for PHP source code.
README 文档
README
This repository contains GroupDocs.Comparison Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Comparison Cloud REST APIs in your PHP applications.
Dependencies
- PHP 5.5 or later
Authorization
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).
Installation & Usage
Composer
The package is available at Packagist and it can be installed via Composer by executing following command:
composer require groupdocscloud/groupdocs-comparison-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-comparison-cloud/groupdocs-comparison-cloud-php.git"
}
],
"require": {
"groupdocscloud/groupdocs-comparison-cloud": "*"
}
}
Then run composer install
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:
require_once('/path/to/groupdocs-comparison-cloud-php/vendor/autoload.php');
Tests
To run the unit tests set your AppSID and AppKey in json.config and execute following commands:
php composer.phar install
./vendor/bin/phpunit
Getting Started
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\Comparison\Configuration(); $configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"); $configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); $infoApi = new GroupDocs\Comparison\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; } ?>
Licensing
GroupDocs.Comparison Cloud SDK for PHP is licensed under MIT License.
Resources
Contact Us
Your feedback is very important to us. Please feel free to contact us using our Support Forums.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-04