Skip to content

Commit 5ba28a8

Browse files
committed
Updated sources
1 parent 03bcb66 commit 5ba28a8

Some content is hidden

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

69 files changed

+23061
-5
lines changed

.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: 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) 2019 GroupDocs.Editor Cloud
3+
Copyright (c) 2003-2019 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: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,99 @@
1-
# groupdocs-editor-cloud-php
2-
PHP library for communicating with the GroupDocs.Editor Cloud API
1+
# GroupDocs.Editor Cloud SDK for PHP
2+
This repository contains GroupDocs.Editor Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Editor Cloud REST APIs in your PHP applications.
3+
4+
GroupDocs.Editor Cloud allows you to edit documents across wide range of supported document types:
5+
* Microsoft Word documents - DOC, DOCX, DOCM, DOT, DOTM, DOTX, RTF, FlatOpc, WordML, TXT;
6+
* Microsoft Excel spreadsheets - XLS, XLSX, XLSM, XLT, XLTX, XLTM, XLSB, SpreadsheetML, CSV, TSV;
7+
* Microsoft PowerPoint presentations - PPT, PPTX, PPTM, POT, PPS etc.;
8+
* Open Document formats - ODT, OTT, ODS, ODP, OTP;
9+
* Markup - HTML, MHTML, XML.
10+
## Dependencies
11+
- PHP 5.5 or later
12+
13+
## Authorization
14+
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).
15+
16+
## Installation & Usage
17+
### Composer
18+
19+
The package is available at [Packagist](https://packagist.org/) and it can be installed via [Composer](http://getcomposer.org/) by executing following command:
20+
```
21+
composer require groupdocscloud/groupdocs-editor-cloud
22+
```
23+
24+
Or you can install SDK via [Composer](http://getcomposer.org/) directly from this repository, add the following to `composer.json`:
25+
26+
```
27+
{
28+
"repositories": [
29+
{
30+
"type": "git",
31+
"url": "https://github.com/groupdocs-editor-cloud/groupdocs-editor-cloud-php.git"
32+
}
33+
],
34+
"require": {
35+
"groupdocscloud/groupdocs-editor-cloud": "*"
36+
}
37+
}
38+
```
39+
40+
Then run `composer install`
41+
42+
### Manual Installation
43+
44+
Clone or download this repository, then run `composer install` in the root directory to install dependencies and include `autoload.php` into your code file:
45+
46+
```php
47+
require_once('/path/to/groupdocs-editor-cloud-php/vendor/autoload.php');
48+
```
49+
50+
## Tests
51+
52+
To run the unit tests set your AppSID and AppKey in [json.config](tests/GroupDocs/Editor/config.json) and execute following commands:
53+
54+
```
55+
php composer.phar install
56+
./vendor/bin/phpunit
57+
```
58+
59+
## Getting Started
60+
Please follow the [installation procedure](#installation--usage) and then run the following:
61+
62+
```php
63+
<?php
64+
65+
require_once(__DIR__ . '/vendor/autoload.php');
66+
67+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
68+
$configuration = new GroupDocs\Editor\Configuration();
69+
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
70+
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
71+
72+
$infoApi = new GroupDocs\Editor\InfoApi($configuration);
73+
74+
try {
75+
$response = $infoApi->getSupportedFileFormats();
76+
77+
foreach ($response->getFormats() as $key => $format) {
78+
echo $format->getFileFormat() . " - " . $format->getExtension(), "\n";
79+
}
80+
} catch (Exception $e) {
81+
echo "Something went wrong: ", $e->getMessage(), "\n";
82+
PHP_EOL;
83+
}
84+
85+
?>
86+
```
87+
88+
## Licensing
89+
GroupDocs.Editor Cloud SDK for PHP is licensed under [MIT License](LICENSE).
90+
91+
## Resources
92+
+ [**Website**](https://www.groupdocs.cloud)
93+
+ [**Product Home**](https://products.groupdocs.cloud/editor)
94+
+ [**Documentation**](https://docs.groupdocs.cloud/display/editorcloud/Home)
95+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/editor)
96+
+ [**Blog**](https://blog.groupdocs.cloud/category/editor)
97+
98+
## Contact Us
99+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/editor).

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

0 commit comments

Comments
 (0)