For php installation we need this command.

salt target state.sls php

It's also possible to change version of php. By default php7.2 will be install. The installation directory is exactly here