aspose/storage-sdk-php
Composer 安装命令:
composer require aspose/storage-sdk-php
包简介
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.
README 文档
README
This repository contains Aspose.Storage Cloud SDK for PHP source code. This SDK allows you to work with Aspose.Storage Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost. See API Reference for full API specification.
How to use the SDK?
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get Packagist distribution (recommended). For more details, please visit our documentation website.
Prerequisites
To use Aspose Storage for Cloud PHP SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.
Installation
Via Composer:
storage-sdk-php is available on Packagist as the
storage-sdk-php package. Run the following command:
composer require aspose/storage-sdk-php
To use the SDK, use Composer's autoload:
require_once('vendor/autoload.php');
Sample usage
$config = new Configuration(); $config->setAppKey('AppKey')->setAppSid('AppSid'); $storageApi = new StorageApi($config); $path = "path/FileName.pdf"; $version_id = null; $storage = "StorageName"; $request = new Requests\GetDownloadRequest($path, $version_id, $storage); $result = $storageApi->getDownload($request);
Tests contain various examples of using the SDK. Please put your credentials into Configuration.
Dependencies
- PHP 5.6 or later
- referenced packages (see here for more details)
Comparison with Old generation SDK
New SDK has the following advantages over the previous version:
- Classes, methods and properties have comments and are IDE-friendly
- Better security
- Usage of Request/Response classes to represent long lists of parameters. This allows for cleaner code and easier backwards-compatibility going forward
New SDK is not backwards compatible with previous generation because of the last item. It should be straightforward to convert your code to using Request/Response objects, if you need any help on migration please ask at Free Support Forums.
Resources
aspose/storage-sdk-php 适用场景与选型建议
aspose/storage-sdk-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.72k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 05 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「aspose」 「aspose storage cloud」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 aspose/storage-sdk-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 aspose/storage-sdk-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 aspose/storage-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.
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.
Aspose.BarCode for PHP via Java is a robust barcode generation and recognition component.
The YADM migrations
A PHP library for communicating with the Aspose.Diagram Cloud API
统计信息
- 总下载量: 5.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-18