I'm required to download a large XML file from a remote FTP server to local storage so that I can process it.
I've defined an FTP driver that can access the file. However, because of the size of the file, PHP gives up allocating memory for the operation.
Storage::disk('ftp')->get('path/to/file/bigass.xml');
Is there any way that doesn't eat up memory and can download file without issues?