Cookbook
Integrate phpxlsx with CodeIgniter
Using phpxlsx with CodeIgniter is as simple as copying the phpxlsx content package to the application/libraries/phpxlsx directory and load the CreateXlsx class.
To have the phpxlsx API methods available, just load the library in the controller:
In order to save the XLSX, the spreadsheets folder in the APPATH path must have read/write permissions.
Warning
To run phpxlsx with CodeIgniter 4 it is mandatory to use the package that supports namespaces. This package is available for Advanced and Premium licenses.