#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.
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?
In order to manipulate any files, you first need to upload them to the Aspose Cloud storage using Storage module.
The Aspose Cloud SDK for PHP allows you to save the output files at your specified location.
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.
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 – 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.
How can I help you explore Laravel packages today?