Search code examples
phpxlsx

Is there any way to write xlsx file without using any phpexcel library like csv or xml file


I have tried creating simple .xlsx file like the way I would crate .csv file. File has been generated and it works fine in ubuntu. But in windows, the same file cannot be opened it says, invalid file contents or file format. I can create it with Phpexcel library, but is there any way that I can do it without using library just with core php ? Or is it that, I need to do all the code of library itself ?

This is just a query. I don't have any codes to show. Thanks in advance.


Solution

  • https://github.com/PHPOffice/PhpSpreadsheet this is the best library that i got for handling all kinds of documents. In addition, it works perfect with macros. Hope this helps. Thanks