Cookbook

Setting phppptxconfig.ini with PHP code

phppptx includes the file config/phppptxconfig.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 PhppptxUtilities::$_phppptxConfig. 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 CreatePptx object: