php - Amazon PHP SDK 最小文件

标签 php amazon-s3 amazon-web-services

我正在与 Amazon SDK for PHP 合作,解压后略高于 2MB。我只需要 S3 的功能。

是否可以从 SDK 中仅提取 S3 所需的文件并使用它们?如果是这样,我需要哪些文件?

谢谢

最佳答案

以下是来自 AWS 论坛的近乎官方的答案:

Hey! This is a feature we've been thinking about better supporting in the future, but right now, there is no official or supported way to do this. That said, I think you might be able to get away with keeping the following files for using only S3: lib/cachecore/* lib/dom/* lib/requestcore/* sdk.class.php services/s3.class.php utilities/* You could also delete a few more items out of the of the utilities directory like the hadoop ones, manifest, stacktemplate, and stepconfig.

I successfully made a list_buckets call with just these files, but obviously you are going to want to test all of your API calls to make sure that they work and that you aren't missing any dependencies that I might have overlooked. Good luck.

关于php - Amazon PHP SDK 最小文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10933917/

相关文章:

php - Laravel 保护表单隐藏字段和 url

javascript - 我们如何在播放视频 10 分钟后让 div 可见

amazon-web-services - REST API 的 CloudFormation 堆栈错误不包含任何方法

node.js - AWS SDK 与 DynamoDB 和 putItem 相关的问题

amazon-web-services - S3静态网站/蓝绿部署

ruby - 通过哈希和范围键查询 DynamoDB 表

javascript - 使用 mootools 从 mysql 获取图像 url

php - 阻止虚假用户注册垃圾邮件或链接

php - 自定义 mysqli 准备函数

javascript - 如何在 Angular $http 响应中捕获格式错误的 JSON?