Cloud Storage Management via PHP SDK
REST APIs to build PHP based cloud storage solution. Manages business documents & works with all major 3rd party cloud storage providers.Start Free Trial
GroupDocs.Storage Cloud SDK for PHP
GroupDocs.Storage Cloud SDK for PHP is built to help our users in order to speed up the process of using GroupDocs.Storage API in their applications. The cloud storage API allows you to perform different storage related operations in your cloud applications and websites. The API comes with many storage related features crucial to organizations, including support for default GroupDocs storage along with 3rd party storage services. The API supports HTTP requests and gets responses in the form of JSON or XML data.
If you do not want to use any of our SDKs or the required SDK is not available at the moment, you can still easily get started with GroupDocs.Storage REST API while using your favorite language & platform.
Supported Operating Systems and Framworks.
Supported External Storage Services
GroupDocs.Storage Cloud supports a number of 3rd party storage services.
- Amazon S3
- Windows Azure
- Google Drive
Advanced Cloud Storage REST API Features
Support default GroupDocs storage
Support 3rd party storage services
Support Folder related operations
Support Files related operations
Check Storage Presence
Get Started with Cloud Storage REST API
It is easy to get started with GroupDocs.Storage Cloud as there is nothing to install. Simply create an account at GroupDocs Cloud and get your application information. Once you have the App SID & key, you are ready to give the GroupDocs.Storage Cloud REST API a try with any language - on any platform, and to accelerate things further, we have provided the SDKs for PHP which makes it even easier to integrate your PHP application with our cloud storage API.
Perform a Number of File Operations
Our storage API for Cloud applications supports a number of operations related to dealing with files. The details are as follows:
- Upload file
- Download a particular file
- Move a file to another location
- Delete a particular file
- Check presence of a file
- Check the version of a file
For example, the below-mentioned code shows how to upload a file using SDK for PHP for the cloud storage API:
Upload file to GroupDocs storage - PHP
//Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). $configuration = new Configuration(); $configuration->setAppSid($sid); $configuration->setAppKey($key); $storageApi = new StorageApi($configuration); $path = "sample4.mpp"; $version_id = null; $request = new Requests\PutCreateRequest($path, $file, $version_id, $storage); $result = $storageApi->putCreate($request); echo "Created: ", $result;
Supported Folder Related Operations
Using the SDK for PHP, you can benefit from the following folder related operations supported by GroupDocs.Storage Cloud API:
- Create a new folder
- Delete a particular folder
- Move a folder to another location
- Get a list of files for a specific folder
As an example, we are showing how to get a list of files from a folder:
Get list of files from a specific folder - PHP
//Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). $configuration = new Configuration(); $configuration->setAppSid($sid); $configuration->setAppKey($key); $storageApi = new StorageApi($configuration); $path = "MyPath"; $storage = "MyStorage"; //get files from the specified path $request = new Requests\GetListFilesRequest($path, $storage); $result = $storageApi->getListFiles($request); echo "Files Found: ", count($result->getFiles());
Security & Authentication
The GroupDocs.Storage Cloud API is secured and requires authentication. Users need to register at GroupDocs Cloud and get their app access key ID and app secret access key. Authenticated requests require a signature and AppSID query parameters or OAuth 2.0 authorization header.
Support for Different Cloud Storage Platforms
GroupDocs Cloud is very flexible and allows its users to use their own cloud storage or some other 3rd party storage services they are comfortable with.
GroupDocs Cloud goes beyond limitations and acts as a kind of gateway between a developer and the cloud storage of his users. This will allow you to write your application once, and we'll take care of both the file formats and also letting you support many different cloud storage platforms through a single consistent interface.