wboyz / cloud-sdk-php
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.
Requires
- php: >=5.3.2
- ext-curl: *
- psr/log: ~1.0
- symfony/event-dispatcher: ~2.0 || ^3.0 || ^4.0 || ^5.0
- symfony/options-resolver: ^2.3 || ^3.0 || ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-11-11 00:03:18 UTC
README
#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.