Download the PHP package pantheon-se/go-composer without Composer
On this page you can find all versions of the php package pantheon-se/go-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pantheon-se/go-composer
More information about pantheon-se/go-composer
Files in pantheon-se/go-composer
Package go-composer
Short Description Installs Go into vendor/bin
License MIT
Homepage https://github.com/pantheon-se/go-composer
Informations about the package go-composer
Go Composer
Composer Plugin to install other utilities via Composer with Go.
Based on node-composer by mariusbuescher, this Composer plugin will install a version of Go into your vendor/bin directory so that they are available to use during your Composer builds. This plugin helps automate the download of the binaries which are linked to the bin-directory specified in your composer.json.
Once installed, you can then use Go in your composer-scripts.
Setup
Simply install the plugin, and the latest Go will be installed - no other configurations are necessary. Optionally, you can specify the go-version
in your composer.json extra configs to declare a specific version of Go.
Example composer.json
Configuration
There are three parameters you can configure:
- Go version (
go-version
) - The download url template for the Go binary archives (
go-download-url
).
In the Node download url, replace the following placeholders with your specific needs:
- version:
${version}
- type of your os:
${osType}
- system architecture:
${architecture}
- file format
${format}
Example composer.json with specific versions of Go
All versions of go-composer with dependencies
composer/composer Version >=2.0
composer-plugin-api Version >=2.0
symfony/process Version >=3.3
ext-zip Version *
ext-json Version *