Exporting large amount of data to Excel


I'm using Laravel-Excel to export db records to Excel.

But now we have data sets with hundreds of thousands of rows and looks like Laravel-Excel is not built for this.

What are my options if I want to be able to do it? Doesn't have to be a Laravel package but even vanilla PHP (I can make it into class later)

What are some known ways of doing it in php? (Lots of data and good performance, but not excessive memory usage as I'm limited)

Last edited: