On the command line, run the following commands:


# Download and install Scoop.
powershell -c "irm https://get.scoop.sh | iex"

# Download and install PHP.
scoop bucket add versions
scoop install php