How to fetch data in excel or generate excel file in PHP