This question already has an answer here:
I am using the CSV package from phpleague
to read a file which is stored in S3. I have the following code :
use League\Csv\Reader;
use League\Csv\Statement;
$file = 'https://my-s3-file-url.csv'
$reader = Reader::createFromPath(
$file,
'r'
);
$records = (new Statement())
->offset(0)
->limit(10)
->process($reader,['header keys array']);
When running this I am getting an error stream does not support seeking in PHP
. This is working when using local files and the issue is with remote files.
</div>