

WARNING: Please do not redistribute the install code. It will change with every version of the installer. Instead, please link to this page or check how to install Composer programmatically. Select a specific version channel instead of the default latest stable.Įxample: php composer-setup.php -version=1.0.0-alpha8 -preview, -snapshot, -1 (EOL), -2, -2.2 (LTS) You can install composer to a specific release by using the -version option and providing a You can specify the filename (default: composer.phar) using the -filename option.Įxample: php composer-setup.php -filename=composer -version Example: php composer-setup.php -install-dir=bin -filename You can install composer to a specific directory by using the -install-dir option and providingĪ target directory. The installer provides more options for specific environments, use the Example: php composer-setup.php -2.2 -help See "Download channels" below for more details.

If you would like to help test pre-release versions you can use the Download channelsīy default the installer and composer self-update willĭownload the latest stable version only.
