Skip to content

Commit 29d6460

Browse files
committed
Update sources
1 parent 13bed0e commit 29d6460

83 files changed

Lines changed: 20401 additions & 5 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
2+
Temp/
3+
obj/
4+
classes/
5+
generated/
6+
*.suo
7+
bin/
8+
*_out_*
9+
* Out*
10+
* out*
11+
*.ldb
12+
Thumbs.db
13+
_ReSharper*/
14+
out/
15+
*.lic
16+
*.user
17+
Out/
18+
Out*/
19+
Data/*Out*
20+
TestResults/
21+
*.ide
22+
*.vsmdi
23+
test-results/
24+
node_modules/
25+
*.userprefs
26+
packages/
27+
*.gitattributes
28+
*.pyc
29+
# Built application files
30+
*.apk
31+
*.ap_
32+
33+
# Files for the ART/Dalvik VM
34+
*.dex
35+
36+
# Java class files
37+
*.class
38+
39+
# Generated files
40+
bin/
41+
gen/
42+
out/
43+
44+
# Gradle files
45+
.gradle/
46+
build/
47+
48+
# Local configuration file (sdk path, etc)
49+
local.properties
50+
51+
# Proguard folder generated by Eclipse
52+
proguard/
53+
54+
# Log Files
55+
*.log
56+
57+
# Android Studio Navigation editor temp files
58+
.navigation/
59+
60+
# Android Studio captures folder
61+
captures/
62+
63+
# Intellij
64+
*.iml
65+
.idea/workspace.xml
66+
.idea/tasks.xml
67+
.idea/gradle.xml
68+
.idea/dictionaries
69+
.idea/libraries
70+
71+
# Keystore files
72+
*.jks
73+
74+
# External native build folder generated in Android Studio 2.2 and later
75+
.externalNativeBuild
76+
77+
# Google Services (e.g. APIs or Firebase)
78+
google-services.json
79+
80+
# Freeline
81+
freeline.py
82+
freeline/
83+
freeline_project_description.json
84+
85+
# Compiled class file
86+
*.class
87+
88+
# Log file
89+
*.log
90+
91+
# BlueJ files
92+
*.ctxt
93+
94+
# Mobile Tools for Java (J2ME)
95+
.mtj.tmp/
96+
97+
# Package Files #
98+
*.war
99+
*.ear
100+
*.zip
101+
*.tar.gz
102+
*.rar
103+
104+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
105+
hs_err_pid*
106+
107+
.DS_Store
108+
*.xcuserstate*StyleCop.Cache
109+
*StyleCop.Cache
110+
.idea/*
111+
vendor/*
112+
report/*
113+
114+
# VS Code files
115+
.vscode/*

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2018
3+
Copyright (c) 2003-2018 Aspose Pty Ltd
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,94 @@
1-
# groupdocs-conversion-cloud-php
2-
PHP library for communicating with the GroupDocs.Conversion Cloud API
1+
# GroupDocs.Conversion Cloud SDK for PHP
2+
This repository contains GroupDocs.Conversion Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Conversion Cloud REST APIs in your PHP applications.
3+
4+
## Dependencies
5+
- PHP 5.5 or later
6+
7+
## Authorization
8+
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).
9+
10+
## Installation & Usage
11+
### Composer
12+
13+
The package is available at [Packagist](https://packagist.org/) and it can be installed via [Composer](http://getcomposer.org/) by executing following command:
14+
```
15+
composer require groupdocscloud/conversion-sdk-php
16+
```
17+
18+
Or you can install SDK via [Composer](http://getcomposer.org/) directly from this repository, add the following to `composer.json`:
19+
20+
```
21+
{
22+
"repositories": [
23+
{
24+
"type": "git",
25+
"url": "https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-php.git"
26+
}
27+
],
28+
"require": {
29+
"groupdocscloud/conversion-sdk-php": "*"
30+
}
31+
}
32+
```
33+
34+
Then run `composer install`
35+
36+
### Manual Installation
37+
38+
Clone or download this repository, then run `composer install` in the root directory to install dependencies and include `autoload.php` into your code file:
39+
40+
```php
41+
require_once('/path/to/groupdocs-conversion-cloud-php/vendor/autoload.php');
42+
```
43+
44+
## Tests
45+
46+
To run the unit tests set your AppSID and AppKey in [json.config](tests/GroupDocs/Conversion/config.json) and execute following commands:
47+
48+
```
49+
composer install
50+
./vendor/bin/phpunit
51+
```
52+
53+
## Getting Started
54+
Please follow the [installation procedure](#installation--usage) and then run the following:
55+
56+
```php
57+
<?php
58+
59+
require_once(__DIR__ . '/vendor/autoload.php');
60+
61+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
62+
$configuration = new GroupDocs\Conversion\Configuration();
63+
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
64+
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
65+
66+
$conversionApi = new GroupDocs\Conversion\ConversionApi($configuration);
67+
68+
try {
69+
$request = new GroupDocs\Conversion\Model\Requests\GetAllPossibleConversionsRequest();
70+
$response = $conversionApi->getAllPossibleConversions($request);
71+
72+
foreach ($response->getConversions() as $key => $conversion) {
73+
echo $conversion->getSourceFileType() . " - " . join(",", $conversion->getPossibleConversions()) . "\n";
74+
}
75+
} catch (Exception $e) {
76+
echo "Something went wrong: ", $e->getMessage(), "\n";
77+
PHP_EOL;
78+
}
79+
80+
?>
81+
```
82+
83+
## Licensing
84+
GroupDocs.Conversion for Cloud SDK for PHP is licensed under [MIT License](LICENSE).
85+
86+
## Resources
87+
+ [**Website**](https://www.groupdocs.cloud)
88+
+ [**Product Home**](https://products.groupdocs.cloud/conversion/cloud)
89+
+ [**Documentation**](https://docs.groupdocs.cloud/display/conversioncloud/Home)
90+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/conversion)
91+
+ [**Blog**](https://blog.groupdocs.cloud/category/groupdocs-conversion-cloud-product-family)
92+
93+
## Contact Us
94+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/conversion).

composer.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo OFF
2+
:: in case DelayedExpansion is on and a path contains !
3+
setlocal DISABLEDELAYEDEXPANSION
4+
php "%~dp0composer.phar" %*

composer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"description": "This repository contains GroupDocs.Conversion for Cloud SDK for PHP source code.",
3+
"name": "groupdocscloud/conversion-sdk-php",
4+
"version": "18.3",
5+
"license": "MIT",
6+
"type": "library",
7+
"keywords": [
8+
"groupdocs",
9+
"conversion",
10+
"php",
11+
"groupdocs cloud"
12+
],
13+
"homepage": "https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-php",
14+
"authors": [
15+
{
16+
"name": "GroupDocs",
17+
"homepage": "https://github.com/groupdocs-conversion-cloud"
18+
}
19+
],
20+
"config": {
21+
"platform": {
22+
"php": "5.6.32"
23+
}
24+
},
25+
"require": {
26+
"php": ">=5.5",
27+
"ext-curl": "*",
28+
"ext-json": "*",
29+
"ext-mbstring": "*",
30+
"guzzlehttp/guzzle": "^6.2",
31+
"aspose/storage-sdk-php": "1.0.*"
32+
},
33+
"require-dev": {
34+
"friendsofphp/php-cs-fixer": "2.10.*",
35+
"squizlabs/php_codesniffer": "3.*",
36+
"phpunit/phpunit": "<4.8"
37+
},
38+
"autoload": {
39+
"classmap": [ "src/" ],
40+
"psr-4": { "GroupDocs\\" : "src/" }
41+
},
42+
"autoload-dev": {
43+
"classmap": [ "src/" ],
44+
"psr-4": { "GroupDocs\\" : "tests/" }
45+
}
46+
}

0 commit comments

Comments
 (0)