Here we will simply use the installer.
This is the easiest way to get Composer set up on your machine.
Download and run Composer-Setup.exe. It will install the latest composer version and set up your
PATH so that you can just call
composer from any directory in your command line.
Note: Close your current terminal. Test usage with a new terminal: This is important since the PATH only gets loaded when the terminal starts.
Note-2: Set up
PATH in windows 10
system ->Advance system settings->Environment variables->System variables[below box] ->select