How to install composer in windows

Steps:-

  1. Download the composer: https://getcomposer.org/doc/00-intro.md
  2. Install as usual
  3. Set the php path:
    • For example we are install xampp in D directory, so the path like this: D:\xampp\php\php.exe
    • For example we are install xampp in C directory, so the path like this: C:\xampp\php\php.exe
  4. Then proceed as usual

 

Full tutorial: https://www.hostinger.com/tutorials/how-to-install-composer