aws icon indicating copy to clipboard operation
aws copied to clipboard

[S3] Support for stream wrappers

Open faizanakram99 opened this issue 4 years ago • 2 comments

Official AWS SDK client for PHP supports stream wrapper for S3 Client.

https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/s3-stream-wrapper.html

Is there something similar for async-aws/s3 ? (I couldn't find it)

faizanakram99 avatar Aug 10 '21 14:08 faizanakram99

I once use streamWrapper on the the AWS package. For bad reason and lack of knowledge. I'm not sure will should move in that direction. I recommend instead using a file system abstraction like FlySystem (we provide an adapter for it)

What is your use case?

jderusse avatar Aug 10 '21 15:08 jderusse

It is easy to swap base file path with a stream wrapper in a legacy application.

fopen, file_get_contents, etc all work out of the box with almost no change in codebase.

faizanakram99 avatar Aug 10 '21 18:08 faizanakram99

to be, this should be handled by using the Flysystem stream wrapper with their adapter for async-aws/s3 instead of writing our own stream wrapper here. @jderusse I suggest closing this issue.

stof avatar Jul 07 '23 22:07 stof