Downloading file from S3 using Flysystem in PHP
<p>I was wondering if I could get some help.</p>

<p>Im using the Flysystem package in my project.</p>

<p>At the moment, im uploading a file to S3 using the following code</p>

<pre><code>$awss3 = new Flysystem(new AwsS3Adapter($client_details, 'bucket-name'));
$stream = fopen(public_path() . '/upload/' . $filename . '.gz', 'r+');
$awss3-&gt;writeStream($filename . '.gz', $stream);
</code></pre>

<p>This works perfect.</p>

<p>But i cant figure out how to run it in reverse and download the file.</p>

<p>Any help would be greatly appreciated.</p>

<p>Cheers,</p>