Downloads:

106,951

Downloads of v 4.10.0:

59,975

Last Update:

2/4/2019

Package Maintainer(s):

Software Author(s):

  • Nils Adermann
  • Jordi Boggiano and community contributors

Tags:

composer php composer-setup admin

Composer Setup

4.10.0 | Updated: 2/4/2019

Downloads:

106,951

Downloads of v 4.10.0:

59,975

Software Author(s):

  • Nils Adermann
  • Jordi Boggiano and community contributors

Composer Setup 4.10.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: 4.10.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  '4.10.0'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: composer,
    Version: 4.10.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  = '4.10.0'
   Source   = 'STEP 3 URL'
}

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


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

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


salt '*' chocolatey.install composer version="4.10.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 2/4/2019.

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: just type composer from any location to use it.

Note: The 4.10.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"'.


tools\chocolateyinstall.ps1
$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.10.0.exe
md5: F21E8F0DA4A578615B4E842DB62848E0 | sha1: C9114D7D53F18195658586D0F344860EF7BC501A | sha256: 0B00F156EDD116A7F464B6A17938568A1C1D71E93365104AA862351B2CF660E9 | sha512: 5CD973D4CD889223D414824E7BAB5E5F136465CC36A8567C511E53C0558AA98FC0ABF9211DAAB0893E557858E3A66926CCC00B10A51C3B6FDB60D547524FB584
tools\LICENSE.txt

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

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

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 4.9.0 17090 Friday, September 28, 2018 Approved
Composer Setup 4.8.0 15576 Sunday, December 17, 2017 Approved
Composer Setup 4.7.0 4923 Thursday, August 3, 2017 Approved
Composer Setup 4.6.0 2910 Thursday, January 5, 2017 Approved
composer 0.1.0.1 6163 Saturday, October 25, 2014 Approved
composer 0.1.0.0 314 Saturday, October 25, 2014 Approved

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