The Windows installer for the Composer PHP Dependency Manager
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
Composer-Setup downloads and installs Composer so you can use it easily from the command line.
composerfrom any location to use it.
Download and run the latest release and in the majority of cases this is all you need to do. The install process is described in more detail below.
Composer-Setup is written with Inno Setup, which is a powerful free installer for Windows programs.
First you must choose the installation type. By default Composer will be installed to a fixed location with a Control Panel uninstaller. You can choose Developer Mode if you want more control, which will install Composer anywhere you want without an uninstaller.
The next step is to find the location of your
php.exe, which is the PHP command line interpreter. The installer searches common locations on your computer and presents you with its findings. If PHP is already in your path then it will display this value. If not, or you want to choose a different PHP, you must select from the list or hunt around manually.
The installer will then check that PHP and your path are set up correctly. If it finds any errors it will give you the chance to fix them. It will also offer to either create or modify the
php.inifile if required settings do not exist. See Php Ini File for more information.
Next, the installer will ask if you need a proxy server to connect to the internet. If it finds any values in your Internet Settings or your environment, then the proxy url will be displayed.
After you have reviewed and accepted your settings, the installer will download Composer and set everything up. If your environment has been changed, it is important to close your current terminal and open a new one so that the changes get loaded. The installer will remind you if this is the case.
Composer-Setup will either create a new
php.inior modify an existing file if any settings needed by Composer are missing:
When creating a new file, the php.ini-production file is used with
date.timezonevalues appropriately set. When modifying an existing file, a backup is created in the same directory, named
Composer-Setup creates a log file, which may be useful to review if you experience any issues. This is stored in your temp directory
AppData\Local\Tempwith a formatted filename:
Setup Log YYYY-MM-DD #nnn.txt.
The uninstall program is available from the Control Panel. Go to Programs and Features, select Composer, then click Uninstall. This offers the option to remove user cache and configuration data.
The uninstall program will not be available if you installed in Developer Mode. To manually uninstall you must delete the composer files from the location you installed to and update the environment.
In a default installation, the install directories are pre-determined and depend on whether you are have chosen to install for All Users or the Current User.
All Users install:
C:\ProgramData\ComposerSetup\bin- composer files.
Current User install:
C:\Users\\AppData\Local\ComposerSetup\bin- composer files.
In a Developer Mode installation you can install the composer files to a location of your choice.
The installer will modify the System path for All Users installs, or the User path for Current User installs:
In addition the installer will add the following to the environment of the current user:
C:\Users\\AppData\Roaming\Composer\vendor\bindirectory to your path.
http_proxyvalue, if a proxy is specified in the installer.
The uninstaller will remove the path to the composer files directory and, if the user data was removed, the
Composer\vendor\binpath. The PHP path and any
http_proxyvalue will be left intact.
The installer supports Inno Setup's standard command line parameters, although not all of them are relevant. Of interest are the
/SILENToptions for Unattended Installs and the
/LOADINF=directives for creating and using a settings file. The following installer-specific parameters are available:
/PHP="folder-or-exe"uses PHP from the specified location, adding it to the path if necessary.
/DEV="path"selects Developer Mode and installs Composer to the specified path without an uninstaller.
/PROXY=proxy-urlis the proxy url to use and save, but only if no proxy environment variables exist. The log file automatically reports the command line parameters so any sensitive data in the proxy url will be visible. This is not the case when the proxy url is specified in a settings file.
Unattended installs/uninstalls require the
/VERYSILENT /SUPPRESSMSGBOXEScommand line options.
Composer-Setup is licensed under the MIT License - see the
LICENSEfile for details