may PHP not installed properly or not setting up PHP path in system environment variable.
1) check php installed properly by the command " php -v " in command prompt
2) included PHP in windows system path by
a) Find the location of your "php.exe " Example C:\php\php.exe
b) Type following in command prompt