aspose/cloud-sdk-php

There is no license information available for the latest version (dev-master) of this package.

This repository contains Aspose Cloud SDK for PHP source code. Aspose Cloud SDK for PHP lets PHP developers convert and process a variety of file formats in the cloud quickly and easily.

dev-master 2018-10-02 04:55 UTC

This package is not auto-updated.

Last update: 2024-11-20 12:44:25 UTC


README

PHP version

#Aspose Cloud SDK for PHP Repository

This repository holds Aspose Cloud SDK for PHP source code. This SDK allows you to work with Aspose REST API in your PHP applications quickly and easily.

Installation

Add the following line to your composer.json file:

// composer.json
{
    require: {
        "aspose/cloud-sdk-php": "~1.1"
    }
}

Install the new dependencies by running composer update from the directory where your composer.json file is located.

##What's included in this SDK repository?

Data

In order to manipulate any files, you first need to upload them to the Aspose Cloud storage using Storage module.

Output

The Aspose Cloud SDK for PHP allows you to save the output files at your specified location.

Make use of the EventDispatcher

The SDK allows you to alter the calls made by connecting EventListeners. You can simply register a php callable in your code by using the following example:

use Aspose\Cloud\Common\AsposeApp;
use Aspose\Cloud\Event\ProcessCommandEvent;

$dispatcher = AsposeApp::getEventDispatcher();
$dispatcher->addListener(ProcessCommandEvent::PRE_CURL, function (ProcessCommandEvent $event) {
    // will be executed when the ProcessCommandEvent::PRE_CURL event is dispatched
    curl_setopt($event->getSession(), CURLOPT_TIMEOUT, 60); 
});

The SDK currenlty dispatches the following events. Please use the Event class constants in your code to register to the specific events.

Docs

For SDK API Ref Docs, please go through API Docs. For SDK Usage Examples, please go through wiki. For Aspose Cloud APIs related help, please go through Aspose.Total for Cloud.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with Aspose for Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose for Cloud.