|
1 | | -# Aspose.Cells Cloud SDK for PHP |
| 1 | +# Aspose.Cells Cloud SDK for PHP [](https://www.nuget.org/packages/Aspose.Cells-Cloud/) |
| 2 | + |
| 3 | +- API version: 3.0 |
| 4 | +- SDK version: 19.9 |
| 5 | + |
2 | 6 | This repository contains Aspose.Cells Cloud SDK for PHP source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost. |
3 | 7 |
|
4 | | -## Key Features |
5 | | -* Convert spreadsheets to different formats |
6 | | -* Create spreadsheets from templates, XML or smart markers |
7 | | -* Split spreadsheets to single worksheet spreadsheets |
8 | | -* Manipulate rows, columns, cells & data |
9 | | -* Set complex formulae |
10 | | -* Extract charts, pictures, shapes & other objects as images |
11 | | -* Export worksheets to images |
| 8 | + |
| 9 | + |
| 10 | +# Key Features |
| 11 | + |
| 12 | +- Conversion between various document-related formats (20+ formats supported), including PDF<->Excel conversion |
| 13 | + |
| 14 | +- Splitting Excel documents |
| 15 | + |
| 16 | +- Accessing Excel document metadata and statistics |
| 17 | + |
| 18 | +- Find and replace |
| 19 | + |
| 20 | +- Watermarks and protection |
| 21 | + |
| 22 | +- Full read & write access to Cells Object Model, including workbook, worksheet, cell, shapes, tables, list object ,ole Object,headers/footers and many others |
| 23 | + |
| 24 | + |
12 | 25 |
|
13 | 26 | See [API Reference](https://apireference.aspose.cloud/cells/) for full API specification. |
14 | 27 |
|
15 | | -## How to use the SDK? |
16 | | -The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [Packagist distribution](https://packagist.org/packages/aspose/cells-sdk-php) (recommended). |
| 28 | + |
| 29 | + |
| 30 | +# Storage API support |
| 31 | + |
| 32 | +#### Since version 19.9 SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs! |
| 33 | + |
| 34 | +It gives you an ability to: |
| 35 | + |
| 36 | +- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default) |
| 37 | +- Create, copy, move and delete folders |
| 38 | +- Copy and move files and folders accross separate storages in scope of a single operation |
| 39 | +- Check if certain file, folder or storage exists |
| 40 | + |
| 41 | +# Licensing |
| 42 | + |
| 43 | +All Aspose.Cells Cloud SDKs are licensed under [MIT License](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/blob/master/LICENSE). |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +# How to use the SDK? |
| 48 | + |
| 49 | +The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [Packagist distribution](https://packagist.org/packages/aspose/cells-sdk-php) (recommended). For more details, please visit our [documentation website](https://docs.aspose.cloud/display/cellscloud/Available+SDKs). |
| 50 | + |
| 51 | + |
17 | 52 |
|
18 | 53 | ### Prerequisites |
19 | 54 |
|
20 | | -To use Aspose Cells for Cloud PHP SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing). |
| 55 | + |
| 56 | + |
| 57 | +To use Aspose Cells Cloud SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing). |
| 58 | + |
| 59 | + |
21 | 60 |
|
22 | 61 | ### Installation |
23 | 62 |
|
24 | 63 | #### Via Composer: |
25 | | -*cells-sdk-php* is available on Packagist as the |
26 | | -[`cells-sdk-php`](https://packagist.org/packages/aspose/cells-sdk-php) package. Run the following command: |
27 | | -```bash |
| 64 | + |
| 65 | +*cells-sdk-php* is available on Packagist as the [`cells-sdk-php`](https://packagist.org/packages/aspose/cells-sdk-php) package. Run the following command: |
| 66 | + |
| 67 | +``` |
28 | 68 | composer require aspose/cells-sdk-php |
29 | 69 | ``` |
30 | 70 |
|
31 | 71 | To use the SDK, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading): |
32 | 72 |
|
33 | | -```php |
| 73 | +``` |
34 | 74 | require_once('vendor/autoload.php'); |
35 | 75 | ``` |
36 | 76 |
|
| 77 | + |
| 78 | + |
37 | 79 | ### Sample usage |
38 | 80 |
|
39 | | -```php |
40 | | -namespace Aspose\Cells\Cloud; |
41 | | - |
42 | | -require_once('vendor\autoload.php'); |
43 | | -use Aspose\Cells\Cloud\Api\OAuthApi; |
44 | | -use Aspose\Cells\Cloud\Api\CellsSaveAsApi; |
45 | | - |
46 | | -$grantType = "client_credentials"; |
47 | | -$clientId = "your clientId"; |
48 | | -$clientSecret = "your clientSecret"; |
49 | | -$api = new OAuthApi(); |
50 | | -$config = $api->getConfig(); |
51 | | -$config->setHost('https://api.aspose.cloud'); |
52 | | -$accessTokenResponse = $api->oAuthPost($grantType, $clientId, $clientSecret); |
53 | | - |
54 | | -$saveAsAPI = new CellsSaveAsApi(); |
55 | | -$config = $saveAsAPI->getConfig(); |
56 | | -$config->setAccessToken($accessTokenResponse->getAccessToken()); |
57 | | - |
58 | | -$name ='Book1.xlsx'; |
59 | | -$saveOptions = null; |
60 | | -$newfilename = "newbook.xlsx"; |
61 | | -$isAutoFitRows= 'true'; |
62 | | -$isAutoFitColumns= 'true'; |
63 | | -$folder = "Temp"; |
64 | | - |
65 | | -$result = $saveAsAPI->cellsSaveAsPostDocumentSaveAs($name, $saveOptions, $newfilename,$isAutoFitRows, $isAutoFitColumns, $folder); |
| 81 | + |
| 82 | + |
66 | 83 | ``` |
| 84 | + $saveAsAPI = new CellsApi("appsid","appkey"); |
| 85 | + $name ='Book1.xlsx'; |
| 86 | + $saveOptions = null; |
| 87 | + $newfilename = "newbook.xlsx"; |
| 88 | + $isAutoFitRows= 'true'; |
| 89 | + $isAutoFitColumns= 'true'; |
| 90 | + $folder = "Temp"; |
| 91 | + $result = $saveAsAPI->cellsSaveAsPostDocumentSaveAs($name, $saveOptions, $newfilename,$isAutoFitRows, $isAutoFitColumns,$folder); |
| 92 | +``` |
| 93 | + |
| 94 | +# Tests |
| 95 | + |
| 96 | +[Tests](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/tree/master/test/Api) contain various examples of using the SDK. |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | +# Contact Us |
67 | 101 |
|
68 | | -## Dependencies |
69 | | -- PHP 5.6 or later |
70 | | -- referenced packages (see [here](composer.json) for more details) |
| 102 | +Your feedback is very important to us. Please feel free to contact via |
71 | 103 |
|
72 | | -## Contact Us |
73 | | -Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/cells). |
| 104 | +- [**Free Support Forum**](https://forum.aspose.cloud/c/cells) |
| 105 | +- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/) |
74 | 106 |
|
| 107 | +# Resources |
75 | 108 |
|
| 109 | +- [**Web API reference**](https://apireference.aspose.cloud/cells/) |
| 110 | +- [**Website**](https://www.aspose.cloud) |
| 111 | +- [**Product Home**](https://products.aspose.cloud/cells) |
| 112 | +- [**Documentation**](https://docs.aspose.cloud/display/cellscloud/Home) |
| 113 | +- [**Blog**](https://blog.aspose.cloud/category/cells/) |
0 commit comments