Skip to content

Commit 7843eb3

Browse files
committed
Updated sources
1 parent d858a4d commit 7843eb3

Some content is hidden

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

74 files changed

+898
-629
lines changed

LICENSE

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

3-
Copyright (c) 2003-2020 Aspose Pty Ltd
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: 31 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,21 @@
1-
![](https://img.shields.io/badge/api-v2.0-lightgrey) ![Packagist Version](https://img.shields.io/packagist/v/groupdocscloud/groupdocs-viewer-cloud) ![Packagist PHP Version Support](https://img.shields.io/packagist/php-v/groupdocscloud/groupdocs-viewer-cloud) [![GitHub license](https://img.shields.io/github/license/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php)](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php/blob/master/LICENSE)
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.
23

3-
# PHP SDK to View Documents in the Cloud
4+
## Dependencies
5+
- PHP 5.5 or later
46

5-
[GroupDocs.Viewer Cloud SDK for PHP](https://products.groupdocs.cloud/viewer/php) wraps GroupDocs.Viewer RESTful APIs so you may integrate Document Viewing features in your own apps with zero initial cost.
7+
## Authorization
8+
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).
69

7-
GroupDocs.Viewer REST API allows the developers to view & render a number of files formats including Word documents, Excel spreadsheets, PowerPoint presentations, PDF, OpenDocument formats, emails, CAD files & images.
8-
9-
## Document Viewer Services in REST
10-
11-
- 90+ supported file formats.
12-
- View documents as PDF, HTML or images.
13-
- Render documents as raster & vector images.
14-
- Render documents with comments & notes.
15-
- Flip or rotate documents pages at 90, 180 or 270 degrees.
16-
- Reorder document pages.
17-
- Render hidden, consecutive or selected document pages.
18-
- Watermark PDF, image or HTML output pages.
19-
- Render with custom fonts as well as replace any missing fonts.
20-
- Load password-protected documents.
21-
- Extract attachment information such as attachment count & names.
22-
- Extract document information like file format, page count, size and visibility, text coordinates, and so on.
23-
- Integrated storage API.
24-
25-
Check out the [Developer's Guide](https://docs.groupdocs.cloud/viewer/developer-guide/) to know more about GroupDocs.Viewer REST API.
26-
27-
## Microsoft File Formats
28-
29-
**Microsoft Word:** DOC, DOCM, DOCX, DOT, DOTM, DOTX\
30-
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM\
31-
**Microsoft PowerPoint:** PPTX, PPTM, PPT, PPSX, PPSM, PPS, POTX, POTM\
32-
**Microsoft Project:** MPP, MPT\
33-
**Microsoft Outlook:** MSG, OST, PST\
34-
**Microsoft Visio:** VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM, VSSX, VST, VSTM, VSTX, VSX, VTX\
35-
**Microsoft OneNote:** ONE
36-
37-
## Other Formats
38-
39-
**Page Layout Formats:** PDF, XPS, TEX\
40-
**OpenDocument:** ODT, OTT, ODS, OTS, ODP, OTP\
41-
**CAD:** DNG, DWF, DWG, DXF, IDC, STL\
42-
**Images:** BMP, CGM, DCM, DJVU, EMP, EPS, GIF, ICO, JP2, JPG, ODG, PCL, PNG, PS, PSD, SVG, TIFF, WEBP, WMF\
43-
**Web:** HTML, MHT, MHTML\
44-
**Emails:** EML, EMLX\
45-
**eBooks:** EPUB, MOBI\
46-
**Others:** TXT, RTF, CSV, TSV
47-
48-
## Get Started with GroupDocs.Viewer Cloud SDK for PHP
49-
50-
First create an account at [GroupDocs for Cloud](https://dashboard.groupdocs.cloud/) and get your application information. Next, follow the steps as given below.
51-
52-
### Installation via Composer
53-
54-
The package is available at [Packagist](https://packagist.org/) and can be installed via [Composer](http://getcomposer.org/) by executing the following command.
10+
## Installation & Usage
11+
### Composer
5512

13+
The package is available at [Packagist](https://packagist.org/) and it can be installed via [Composer](http://getcomposer.org/) by executing following command:
5614
```
5715
composer require groupdocscloud/groupdocs-viewer-cloud
5816
```
5917

60-
You can also install the package directly from this repository. Add the following to `composer.json`, then run `composer install`.
18+
Or you can install SDK via [Composer](http://getcomposer.org/) directly from this repository, add the following to `composer.json`:
6119

6220
```
6321
{
@@ -73,38 +31,38 @@ You can also install the package directly from this repository. Add the followin
7331
}
7432
```
7533

34+
Then run `composer install`
35+
7636
### Manual Installation
7737

78-
Clone or download this repository, then run `composer install` in the root directory to install dependencies and include `autoload.php` into your code file.
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:
7939

8040
```php
8141
require_once('/path/to/groupdocs-viewer-cloud-php/vendor/autoload.php');
8242
```
8343

84-
### Tests
44+
## Tests
8545

86-
Set your application information in [json.config](tests/GroupDocs/Viewer/config.json), and execute the following to run the tests.
46+
To run the unit tests set your AppSID and AppKey in [json.config](tests/GroupDocs/Viewer/config.json) and execute following commands:
8747

8848
```
8949
php composer.phar install
9050
./vendor/bin/phpunit
9151
```
9252

93-
## Get a List of Viewable File Formats
53+
## Getting Started
54+
Please follow the [installation procedure](#installation--usage) and then run the following:
9455

9556
```php
9657
<?php
9758

9859
require_once(__DIR__ . '/vendor/autoload.php');
9960

100-
//Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
101-
$myClientId = "";
102-
$myClientSecret = "";
103-
104-
// Create instance of the API
61+
//TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
10562
$configuration = new GroupDocs\Viewer\Configuration();
106-
$configuration->setAppSid($myClientId);
107-
$configuration->setAppKey($myClientSecret);
63+
$configuration->setAppSid("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
64+
$configuration->setAppKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
65+
10866
$infoApi = new GroupDocs\Viewer\InfoApi($configuration);
10967

11068
try {
@@ -121,11 +79,15 @@ try {
12179
?>
12280
```
12381

124-
## GroupDocs.Viewer Cloud SDKs in Popular Languages
82+
## Licensing
83+
GroupDocs.Viewer Cloud SDK for PHP is licensed under [MIT License](LICENSE).
12584

126-
| .NET | Java | PHP | Python | Ruby | Node.js | Android |
127-
|---|---|---|---|---|---|---|
128-
| [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-dotnet) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-python) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-ruby) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-node) | [GitHub](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-android) |
129-
| [NuGet](https://www.nuget.org/packages/GroupDocs.Viewer-Cloud/) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-viewer-cloud) | [Composer](https://packagist.org/packages/groupdocscloud/groupdocs-viewer-cloud) | [PIP](https://pypi.org/project/groupdocs-viewer-cloud/) | [GEM](https://rubygems.org/gems/groupdocs_viewer_cloud) | [NPM](https://www.npmjs.com/package/groupdocs-viewer-cloud) | [Maven](https://repository.groupdocs.cloud/webapp/#/artifacts/browse/tree/General/repo/com/groupdocs/groupdocs-viewer-cloud-android) |
85+
## Resources
86+
+ [**Website**](https://www.groupdocs.cloud)
87+
+ [**Product Home**](https://products.groupdocs.cloud/viewer)
88+
+ [**Documentation**](https://docs.groupdocs.cloud/display/viewercloud/Home)
89+
+ [**Free Support Forum**](https://forum.groupdocs.cloud/c/viewer)
90+
+ [**Blog**](https://blog.groupdocs.cloud/category/viewer)
13091

131-
[Home](https://www.groupdocs.cloud/) | [Product Page](https://products.groupdocs.cloud/viewer/php) | [Documentation](https://docs.groupdocs.cloud/viewer/) | [Live Demo](https://products.groupdocs.app/viewer/total) | [API Reference](https://apireference.groupdocs.cloud/viewer/) | [Code Samples](https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-php-samples) | [Blog](https://blog.groupdocs.cloud/category/viewer/) | [Free Support](https://forum.groupdocs.cloud/c/viewer) | [Free Trial](https://dashboard.groupdocs.cloud)
92+
## Contact Us
93+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.groupdocs.cloud/c/viewer).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"description": "This repository contains GroupDocs.Viewer Cloud SDK for PHP source code.",
33
"name": "groupdocscloud/groupdocs-viewer-cloud",
4-
"version": "20.5",
4+
"version": "21.3",
55
"license": "MIT",
66
"type": "library",
77
"keywords": [

0 commit comments

Comments
 (0)