Skip to content

Commit 1c93d05

Browse files
author
Vladimir Litvinchik
committed
Initial commit (v18.2)
0 parents  commit 1c93d05

149 files changed

Lines changed: 47176 additions & 0 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: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
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+
Plugins/Aspose_Words_NET_for_PHP/.idea/*
28+
Plugins/Aspose_Words_NET_for_PHP/vendor/*
29+
Plugins/Aspose_Words_NET_for_PHP/composer.lock
30+
*.gitattributes
31+
*.pyc
32+
# Built application files
33+
*.apk
34+
*.ap_
35+
36+
# Files for the ART/Dalvik VM
37+
*.dex
38+
39+
# Java class files
40+
*.class
41+
42+
# Generated files
43+
bin/
44+
gen/
45+
out/
46+
47+
# Gradle files
48+
.gradle/
49+
build/
50+
51+
# Local configuration file (sdk path, etc)
52+
local.properties
53+
54+
# Proguard folder generated by Eclipse
55+
proguard/
56+
57+
# Log Files
58+
*.log
59+
60+
# Android Studio Navigation editor temp files
61+
.navigation/
62+
63+
# Android Studio captures folder
64+
captures/
65+
66+
# Intellij
67+
*.iml
68+
.idea/workspace.xml
69+
.idea/tasks.xml
70+
.idea/gradle.xml
71+
.idea/dictionaries
72+
.idea/libraries
73+
74+
# Keystore files
75+
*.jks
76+
77+
# External native build folder generated in Android Studio 2.2 and later
78+
.externalNativeBuild
79+
80+
# Google Services (e.g. APIs or Firebase)
81+
google-services.json
82+
83+
# Freeline
84+
freeline.py
85+
freeline/
86+
freeline_project_description.json
87+
88+
# Compiled class file
89+
*.class
90+
91+
# Log file
92+
*.log
93+
94+
# BlueJ files
95+
*.ctxt
96+
97+
# Mobile Tools for Java (J2ME)
98+
.mtj.tmp/
99+
100+
# Package Files #
101+
*.war
102+
*.ear
103+
*.zip
104+
*.tar.gz
105+
*.rar
106+
107+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
108+
hs_err_pid*
109+
110+
.DS_Store
111+
*.xcuserstate*StyleCop.Cache
112+
*StyleCop.Cache
113+
.idea/*
114+
vendor/*
115+
report/*
116+
117+
# VS Code files
118+
.vscode/*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2003-2018 Aspose Pty Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# GroupDocs.Viewer Cloud SDK for PHP
2+
This repository contains GroupDocs.Viewer Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Viewer 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 groupdocs/viewer-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-viewer-cloud/groupdocs-viewer-cloud-php.git"
26+
}
27+
],
28+
"require": {
29+
"groupdocs/viewer-sdk-php": "*"
30+
}
31+
}
32+
```
33+
34+
Then run `composer install`
35+
36+
### Manual Installation
37+
38+
Download the files, then run `composer install` in the root directory and include `autoload.php`:
39+
40+
```php
41+
require_once('/path/to/groupdocs-viewer-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/Viewer/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\Viewer\Configuration();
63+
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
64+
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
65+
66+
$viewerApi = new GroupDocs\Viewer\ViewerApi($configuration);
67+
68+
try {
69+
$request = new GroupDocs\Viewer\Model\Requests\GetSupportedFileFormatsRequest();
70+
$response = $viewerApi->getSupportedFileFormats($request);
71+
72+
foreach ($response->getFormats() as $key => $format) {
73+
echo $format->getFileFormat() . " - " . $format->getExtension(), "\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.Viewer 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/viewer/cloud)
89+
+ [**Documentation**](https://docs.groupdocs.cloud/display/viewercloud/Home)
90+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer)
91+
+ [**Blog**](https://blog.groupdocs.cloud/category/groupdocs-viewer-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/viewer).

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.Viewer for Cloud SDK for PHP source code.",
3+
"name": "groupdocs/viewer-sdk-php",
4+
"version": "18.2",
5+
"license": "MIT",
6+
"type": "library",
7+
"keywords": [
8+
"groupdocs",
9+
"viewer",
10+
"php",
11+
"groupdocs cloud"
12+
],
13+
"homepage": "https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php",
14+
"authors": [
15+
{
16+
"name": "GroupDocs",
17+
"homepage": "https://github.com/groupdocs-viewer-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)