Downloads:

159,988

Downloads of v 6.1.0:

1,987

Last Update:

09 Sep 2020

Package Maintainer(s):

Software Author(s):

  • Nils Adermann
  • Jordi Boggiano and community contributors

Tags:

composer php composer-setup admin foss cli

Composer Setup

6.1.0 | Updated: 09 Sep 2020

Downloads:

159,988

Downloads of v 6.1.0:

1,987

Software Author(s):

  • Nils Adermann
  • Jordi Boggiano and community contributors

Composer Setup 6.1.0

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

PHP install prevents this from finishing successfully in the test environment

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

>

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

>

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

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade composer -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade composer -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure composer installed
  win_chocolatey:
    name: composer
    state: present
    version: 6.1.0
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'composer' do
  action    :install
  version  '6.1.0'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: composer,
    Version: 6.1.0,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller composer
{
   Name     = 'composer'
   Ensure   = 'Present'
   Version  = '6.1.0'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'composer':
  provider => 'chocolatey',
  ensure   => '6.1.0',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install composer version="6.1.0" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 09 Sep 2020.

Description

Composer Setup downloads and installs the latest version of Composer, the PHP Dependency Manager, so you can use it easily from the command line.

Features

  • Composer is installed globally - just type composer from any location to use it.
  • Works from cmd, Git Bash, Msys2 and Cygwin terminals.
  • Modifies php.ini, if required.

Package Parameters

The following parameters are generally 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.

Use the --params option to pass them to the installer.
For example: --params '"/Dev:C:\tools\composer /Php:C:\php"'.

Notes

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

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 encounter any problems with the installation, you can run it interactively using the --notsilent option.


legal\LICENSE.txt
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.
legal\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that the contents of this package are trustworthy.

All binaries are SHA256 code-signed by Open Source Developer, John Stevenson

The installer can also be verified like this:

1. Download the installer from:

  x32: https://github.com/composer/windows-setup/releases/download/v6.1.0/Composer-Setup.6.1.0.exe

2. You can use one of the following methods to obtain the checksum:
  - Use powershell function 'Get-FileHash'
  - Use Chocolatey utility 'checksum.exe'

  checksum32: F3FE32CCCDF21E0E58DAF505823D2B9426AF6A4F754318217F9E6E23744AF781
  checksum type: sha256


File 'license.txt' is obtained from:
  From: https://github.com/composer/windows-setup/blob/master/LICENSE
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$fileName = 'Composer-Setup.6.1.0.exe'

$packageArgs = @{
  packageName  = 'composer'
  fileType     = 'exe'
  file         = Get-Item $toolsPath\$fileName
  checksum     = 'F3FE32CCCDF21E0E58DAF505823D2B9426AF6A4F754318217F9E6E23744AF781'
  checksumType = 'sha256'
  silentArgs   = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART'
  softwareName = 'composer*'
}

try {
  Install-ChocolateyInstallPackage @packageArgs
  Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" '' } }
}
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.6.1.0.exe
md5: 580A84B5317AC063C7730AFF7E4B4F35 | sha1: 32BF99EF8A8DA0003D46D01D8E869742CF57354E | sha256: F3FE32CCCDF21E0E58DAF505823D2B9426AF6A4F754318217F9E6E23744AF781 | sha512: 47C7E72B126B2DE14D0C316A0F2868DE32E3743593C6C3F5DD9675E94C2122F99CEC3BE9172D301D291F3A53D9AF5D5AEF4AE1645FCF469FE44EAD30534B3788

Log in or click on link to see number of positives.

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.

Version Downloads Last Updated Status
Composer Setup 6.0.0 3991 Thursday, August 13, 2020 Approved
Composer Setup 5.1.0.20200713 4496 Monday, July 13, 2020 Approved
Composer Setup 5.1.0 28325 Wednesday, January 1, 2020 Approved
Composer Setup 5.0.0 6181 Wednesday, December 4, 2019 Approved
Composer Setup 4.10.0 66649 Monday, February 4, 2019 Approved
Composer Setup 4.9.0 17138 Friday, September 28, 2018 Approved
Composer Setup 4.8.0 16753 Sunday, December 17, 2017 Approved
Composer Setup 4.7.0 4961 Thursday, August 3, 2017 Approved
Composer Setup 4.6.0 2953 Thursday, January 5, 2017 Approved

    • php (≥ 5.5.0)
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