To automate the installation, use the guide on installing Composer programmatically. To quickly install Composer in the current directory, run the following script in your terminal. it will install the latest composer version whenever it is executed. So you can simply call composer from any directory. The installer - which requires that you have PHP already installed - will download Composer for you and set up your PATH environment variable Download Composer Latest: v2.1.8 Windows Installer