GroupDocs.Storage Cloud SDK for PHP
This repository contains GroupDocs.Storage Cloud SDK for PHP source code. This SDK allows you to work with GroupDocs.Storage Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost.
See API Reference for full API specification.
How to use the SDK?
The complete source code is available in this repository folder. You can either directly use it in your project via source code or via Packagist distribution (recommended). For more details, please visit our documentation website.
To use GroupDocs.Storage Cloud SDK for PHP you need to register an account with GroupDocs Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.
Install storage-sdk-php via Composer:
storage-sdk-php is available on Packagist as the
storage-sdk-php package. Run the following command:
composer require groupdocscloud/storage-sdk-php
To use the SDK, use Composer's autoload:
The example below shows how your application has to initiate and download a file using storage-sdk-php library:
$config = new Configuration(); $config->setAppKey('AppKey')->setAppSid('AppSid'); $storageApi = new StorageApi($config); $path = "path/FileName.pdf"; $versionId = null; $storage = "StorageName"; $request = new Requests\GetDownloadRequest($path, $versionId, $storage); $result = $storageApi->getDownload($request);
- PHP 5.6 or later
- referenced packages (see here for more details)
Your feedback is very important to us. Please feel free to contact us using our Support Forums.