1) How to include PHP in the environment variable?
Goto ->The PC -> Properties -> Advance system setting -> Environment variable -> System Variable -> Click Path -> Edit
Then add the path to PHP executable here :
Make sure to save and close everything and then restart the terminal type
to check if PHP is installed successfully.