I recently worked with the PHPSpreadSheet
library to read and create Excel files with a browser. The problem is this:
I have tried to create an Excel based on records of a table in SQL, the result of the query is approximately 20,000 records. So I throw a memory error, I tried to load the 5,000 records in 5,000 but it does not work.
It shows me the following error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 12582920 bytes) in C: \ xampp \ htdocs \ vPemex \ vendor \ phpoffice \ phpspreadsheet \ src \ PhpSpreadsheet \ Collection \ Cells.php on line 144
Any suggestions?