Hi, I know it's been quite some time. But have you figured out the solution?
I'm facing the same case, I want to convert a csv file that's stored in the storage (cloud storage in my case) to json.
I'm aware fopen() is for local file, but how do I sort of download the file from storage just to allow the file gets read by fopen() ?
parse the CSV. For this you can use one of the suggestions in my first response
convert to JSON (or Object, or whatever). Likely at this stage you'll have a PHP iterable that you convert or use. If you need, perhaps json_encode() would help you?
Depending on what you're reading, you may want to be feeding this straight into your DB via Eloquent models.