aspose/cloud-sdk-php
Composer 安装命令:
composer require aspose/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.
关键字:
README 文档
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?
| Module | Description |
|---|---|
| Common | This module provides the features commonly used by other sections of the SDK. |
| Storage | This module provides the features to work with Aspose storage. |
| This module provides the features to manipulate PDF file formats using Aspose.Pdf for Cloud. | |
| Words | This module provides the features to manipulate word processing file formats using Aspose.Words for Cloud. |
| Cells | This module provides the features to manipulate spreadsheet file formats using Aspose.Cloud for Cloud. |
| Slides | This module provides the features to manipulate presentations file formats using Aspose.Slides for Cloud. |
| BarCode | This module provides the features to create and detect BarCodes images using Aspose.BarCode for Cloud. |
| This module provides the features to manipulate email file formats using Aspose.Email for Cloud. | |
| OCR | This module provides the features to detect text from images using Aspose.OCR for Cloud. |
| Imaging | This module provides the features to process image file formats using Aspose.Imaging for Cloud. |
| Tasks | This module provides the features to process Microsoft Project file formats using Aspose.Tasks for Cloud. |
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.
| Module | Event names | Description |
|---|---|---|
| Utils | ProcessCommandEvent::PRE_CURL | Allows you to alter the curl session before the call is executed. |
| Utils | ProcessCommandEvent::POST_CURL | Allows you to alter the curl session and response after the curl request is executed, but before the curl session is closed. |
| Utils | ValidateOutputEvent::VALIDATE_OUTPUT | Allows you to add extra validation on the result, by altering the invalid variable. |
| Pdf & Document | SplitPageEvent::PAGE_IS_SPLIT | Triggers after a SDK split call, for each page that was split. This allows you to use the `$outputFile` and `$pageNumber` directly after it was saved by `Utils::saveFile`. |
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.
aspose/cloud-sdk-php 适用场景与选型建议
aspose/cloud-sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39.35k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2014 年 04 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「aspose」 「aspose cloud」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aspose/cloud-sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aspose/cloud-sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aspose/cloud-sdk-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A SDK for working with B2 cloud storage.
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
UCloud Resource (Cloud) Storage SDK for PHP
The flysystem adapter for yandex disk rest api.
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
This repository contains Aspose Storage Cloud SDK for PHP source code. Aspose Storage Cloud SDK for PHP is a true REST API that provides managers for multiple storage types.
统计信息
- 总下载量: 39.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 18
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-04-25