Cookbook
Setting phpxlsxconfig.ini with PHP code
phpxlsx includes the file config/phpxlsxconfig.ini in all licenses to set the license key and other settings such as rtl or transform options.
In addition to fill this INI file, the available options can be customized updating the static var PhpxlsxUtilities::$_phpxlsxConfig. This allows using ENV vars and PHP code to define all options dynamically instead of using fixed values in the INI file.
The following code updates the license key option:
The whole INI file can also be customized before creating the CreateXlsx object: