How to Install Composer on Windows 11
Install Composer on Windows, select your PHP executable, and confirm Composer is ready to use from the command line.
Introduction
Composer is a dependency manager for PHP. It helps you install and manage PHP packages from the command line without manually downloading and organizing library files.
This guide focuses only on installing Composer on Windows and confirming that the composer command works correctly.
Download Composer
Open the Composer website
Open your browser and go to the official Composer website.
https://getcomposer.org/
Open the download page
Click Download on the Composer website to open the Composer installer page.
Download Composer-Setup.exe
Download the Windows installer named Composer-Setup.exe.
Install Composer
Run the Composer installer
Open the Composer-Setup.exe file to launch the installation wizard.
Select your PHP executable
When the installer asks for the PHP executable path, browse to your PHP installation folder and select php.exe.
Skip proxy configuration
If you are not using a proxy server, leave the proxy settings empty and continue to the next step.
Complete the installation
Continue through the installer and click Install. Composer will be installed and the PATH environment variable should be configured automatically.
Verify Composer
Open a new Command Prompt window
After the installation finishes, open a new Command Prompt window.
Run the composer command
Type composer and press Enter to verify that Composer is installed correctly.
composer
Expected Output
Composer version information and a list of available Composer commands should appear in the terminal.