Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Composer Setup

4.9.0

This package skips automatic verification:

PHP install prevents this from finishing successfully in the test environment


This package was approved as a trusted package on 9/28/2018.

Composer Setup downloads and installs the latest version of Composer, the PHP Dependency Manager, so you can use it easily from the command line: just type composer from any location to use it.

Note: The 4.9.0 version refers to the installer and not to Composer, which you can update by running composer self-update from your terminal.

Package Specifics

This package has a dependency on the Chocolatey PHP package. If this is not found, the latest version will be downloaded and installed first. If you already have PHP installed, you can override this by using the -i option to ignore dependencies.

If you encounter any problems with the installation, you can run it interactively using the --notsilent option.

Advanced Usage

The following package parameters can be set. They are mainly intended for CI usage:

  • /DEV=path - this installs Composer to the specified path, but without an uninstaller.
  • /PHP=folder-or-exe - this uses PHP from the specified location, adding it to the path.

These parameters can be passed to the installer by using the --ia option.
For example: --ia '"/DEV=C:\tools\php /PHP=C:\php"'.

To install Composer Setup, run the following command from the command line or from PowerShell:

C:\> choco install composer

To upgrade Composer Setup, run the following command from the command line or from PowerShell:

C:\> choco upgrade composer

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
    $setup = (Get-ChildItem -Path "$toolsDir" -Filter *.exe | Select-Object -First 1).Name
    
    $packageArgs = @{
      packageName   = 'composer'
      fileType      = 'EXE'
      file          = Join-Path $toolsDir $setup
      silentArgs    = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART'
      validExitCodes= @(0)
    }
    
    try {
      Install-ChocolateyInstallPackage @packageArgs
    } catch {
    
      if ($env:ChocolateyExitCode -eq '1') {
        Write-Host ""
        Write-Host "*** IMPORTANT ***"
        Write-Host "The installation failed. Your PHP or other settings are incorrect."
        Write-Host "  Use the --notsilent option to run the installer interactively."
        Write-Host ""
      }
    }
    
  • tools\Composer-Setup.4.9.0.exe Show
    md5: 10BC30D9667B4D86D1E5C90CC79C8356 | sha1: A7BD1E9E888B802D28C1FDD9462FB6F91BBC67D3 | sha256: 1D55F3F1179AB4FED72EDC9E5084BBE88692F0DF0E438991109E1731F561AEB1 | sha512: 2BAEF0335872906104EEC41888C84F3DE5C96C6F06A504F897A587CB8A942AAC2103DF4A7AFA9998285C245321CF2728D799404E39078DBDDD6A64B649BF32D1
  • tools\LICENSE.txt Show
    From: https://github.com/composer/windows-setup/blob/master/LICENSE
    
    LICENSE
    
    Copyright (c) 2012-Present John Stevenson
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is furnished
    to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    THE SOFTWARE.
    
  • tools\VERIFICATION.txt Show
    VERIFICATION
    Verification is intended to assist the Chocolatey moderators and community
    in verifying that this package's contents are trustworthy.
     
    All binaries are SHA256 code-signed by Open Source Developer, John Stevenson
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

    • php (≥ 5.3.4)

Package Maintainer(s)

Software Author(s)

  • Nils Adermann
  • Jordi Boggiano and community contributors

Copyright

© 2011-Present Nils Adermann, Jordi Boggiano

Tags

Release Notes

https://github.com/composer/windows-setup/releases/tag/v4.9.0

Version History

Version Downloads Last updated Status
Composer Setup 4.8.0 12527 Sunday, December 17, 2017 approved
Composer Setup 4.7.0 4860 Thursday, August 3, 2017 approved
Composer Setup 4.6.0 2836 Thursday, January 5, 2017 approved
composer 0.1.0.1 6116 Saturday, October 25, 2014 approved
composer 0.1.0.0 269 Saturday, October 25, 2014 approved

Discussion for the Composer Setup Package

Ground rules:

  • This discussion is only about Composer Setup and the Composer Setup package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Composer Setup, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok