Hello,
You can set phpdocxconfig.ini settings using PHP. For example, using the empty default ini and then set each setting using PHP (for example ENV vars or any other PHP code).
Please check the following documentation:
https://www.phpdocx.com/documentation/cookbook/setting-phpdocx-ini-php-code
Regards.