Git Product home page Git Product logo

windows-setup's Introduction

Composer-Setup

The Windows installer for the Composer PHP Dependency Manager. Download the latest release.

Contents

About

Composer-Setup downloads and installs Composer so you can use it easily from the command line.

  • it looks for PHP on your computer
  • it adds PHP to the path
  • it installs Composer globally - just type composer from any location to use it
  • it lets you use the Command Prompt, Git Bash, Msys, Msys2 and Cygwin (including cygwin php)
  • it can be deployed unattended for silent installs/uninstalls

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.

Details

The first 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.

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.

The installation directories depends on whether you are an Administrator or not and are non-negotiable.

Admin install for all users:

  • C:\<Program Files>\ComposerSetup
  • C:\ProgramData\ComposerSetup\bin

User install:

  • C:\Users\<user>\AppData\Local\ComposerSetup
  • C:\Users\<user>\AppData\Local\ComposerSetup\bin

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.

Troubleshooting

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\Temp with a formatted filename: Setup Log YYYY-MM-DD #nnn.txt. Note that for Admin installs the log will be deleted on the next reboot.

Uninstalling

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 cache and configuration data that Composer may have stored.

Environment Variables

The installer will modify your system path for Admin installs, or your user path for User installs. The installer will add the path to PHP if required and the path to the installation bin directory.

In addition the installer will add the following to the user environment:

  • the C:\Users\<user>\AppData\Roaming\Composer\vendor\bin directory to your path
  • an http_proxy value, if specified in the installer

The uninstaller will only remove the path to the installation bin directory and the Composer\vendor\bin path, leaving the PHP path and any http_proxy value intact.

License

Composer-Setup is licensed under the MIT License - see the LICENSE file for details

windows-setup's People

Contributors

johnstevenson avatar hakre avatar

Watchers

rosa maria palacios juncosa avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.