最佳答案
以下是来自 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/