composer-php Getting started with composer-php Installing on Windows


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

  1. Right click on start up(windows logo)->system ->Advance system settings->Environment variables->System variables[below box] ->select Path and click Edit
  2. Click New and add this value C:\ProgramData\ComposerSetup\bin
  3. Now open your terminal [cmd] and test composer --version