Installs the PHP CLI environment via Homebrew, required for backend web development stacks.
- Detection: Checks if
phpis present in the local Homebrew cellar. - Privilege Dropping: Bypasses the Intune
rootexecution by dynamically finding the active console user and assuming their identity viasudo -u. - Remediation: Silently compiles/installs the
phpformula and its core extensions natively on Apple Silicon/Intel.
- Upload script:
install-php.sh - Run script as signed-in user: No (Script manages identity switching internally)