I would like to know is there a simple way to reduce the AWS PHP SDK to use only S3 ? I tried to delete certain directory but there are so many it will take an incredible time, and I have many errors depending on the files I delete (21,6Mo – 2 368 elements) ?! Is it possible to know the architecture of the basic files necessary to use only S3 with the SDK PHP please?
I found old posts on this subject but the file structure has changed and they are no longer current.
The complete SDK is very heavy with a lot of files that I don’t need to keep my sources with an optimization in reasonable size.
Thanks for your help
Advertisement
Answer
Unfortunately to use the SDK you will need to use the entire directory (and all of its individual dependencies).
Whilst you could prune individual directories and files you would then be responsible for maintaining this, including new features which may require additional classes
Best practice for pulling in the SDK is to use the composer dependency manager.
If you were looking for a lighter version you would need to look for someone else’s implementation or look at implementing your own library to interact with the AWS S3 API endpoints.