groupdocscloud / storage-sdk-php
This repository contains GroupDocs Storage Cloud SDK for PHP source code. GroupDocs Storage Cloud SDK for PHP is a true REST API that provides managers for multiple storage types.
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: 2.10.*
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: 3.*
This package is not auto-updated.
Last update: 2024-12-18 11:59:45 UTC
README
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.
Prerequisites
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.
Installation
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:
require_once('vendor/autoload.php');
Sample usage
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);
Tests contain various examples of using the SDK. Please put your credentials into Configuration.
Dependencies
- PHP 5.6 or later
- referenced packages (see here for more details)
Contact Us
Your feedback is very important to us. Please feel free to contact us using our Support Forums.