Looking to know the best tool or option to export data into Excel in PHP for more than 50000 records

Have been looking for a tool to export a data of more than 50000 records into excel file using core PHP.
Currently using PHPExcel and we are facing a lot of delay to get it exported for 50000 reocrds(more than 15minutes) it has 27 columns and more than 50000 rows.

Could anyone help me out for making the data export faster