A PHP library for communicating with the GroupDocs.Storage Cloud API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/GroupDocs/Storage
tests/GroupDocs/Storage
.gitignore
LICENSE
README.md
composer.json
composer.lock
composer.phar
phpcs.xml
phpunit.xml

README.md

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.

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.