PHP extensions and environment variables
First of all, I'm loving Windmill. Great job so far.
Second, I have two questions,
1) How do I install PHP extensions?
Came across this error and I don't know where to update the php.ini file
ExecutionErr: exit code for "composer install": 2, last log lines:
omposer.json requires PHP extension ext-soap * but it is missing from your system. Install or enable PHP's soap extension.
Problem 2
- Root composer.json requires ryanwinchester/netsuite-php v2024.2.0 -> satisfiable by ryanwinchester/netsuite-php[v2024.2.0].
- ryanwinchester/netsuite-php v2024.2.0 requires ext-soap * -> it is missing from your system. Install or enable PHP's soap extension.
2) How do I retrieve environment variables in a PHP script?
Documentation only gives examples for TS, Py, Go, and Bash
https://www.windmill.dev/docs/core_concepts/variables_and_secrets#accessing-a-variable-from-a-script
Variables and secrets | Windmill
When writing scripts, you may want to reuse variables, or safely pass secrets to
1 Reply
for 1) you should use init scripts: https://www.windmill.dev/docs/advanced/preinstall_binaries#init-scripts
for 2) you can use the helpers in the top bar (see picture) and we will update the docs (cc @henri-c)
